1313//! let s = "My *markdown* _text_"; 
1414//! let mut id_map = IdMap::new(); 
1515//! let md = Markdown(s, &[], &mut id_map, ErrorCodes::Yes, Edition::Edition2015, &None); 
16- //! let html = md.to_string (); 
16+ //! let html = md.into_string (); 
1717//! // ... something using html 
1818//! ``` 
1919
@@ -848,7 +848,7 @@ impl LangString {
848848} 
849849
850850impl  Markdown < ' _ >  { 
851-     pub  fn  to_string ( self )  -> String  { 
851+     pub  fn  into_string ( self )  -> String  { 
852852        let  Markdown ( md,  links,  mut  ids,  codes,  edition,  playground)  = self ; 
853853
854854        // This is actually common enough to special-case 
@@ -878,7 +878,7 @@ impl Markdown<'_> {
878878} 
879879
880880impl  MarkdownWithToc < ' _ >  { 
881-     pub  fn  to_string ( self )  -> String  { 
881+     pub  fn  into_string ( self )  -> String  { 
882882        let  MarkdownWithToc ( md,  mut  ids,  codes,  edition,  playground)  = self ; 
883883
884884        let  p = Parser :: new_ext ( md,  opts ( ) ) ; 
@@ -899,7 +899,7 @@ impl MarkdownWithToc<'_> {
899899} 
900900
901901impl  MarkdownHtml < ' _ >  { 
902-     pub  fn  to_string ( self )  -> String  { 
902+     pub  fn  into_string ( self )  -> String  { 
903903        let  MarkdownHtml ( md,  mut  ids,  codes,  edition,  playground)  = self ; 
904904
905905        // This is actually common enough to special-case 
@@ -926,7 +926,7 @@ impl MarkdownHtml<'_> {
926926} 
927927
928928impl  MarkdownSummaryLine < ' _ >  { 
929-     pub  fn  to_string ( self )  -> String  { 
929+     pub  fn  into_string ( self )  -> String  { 
930930        let  MarkdownSummaryLine ( md,  links)  = self ; 
931931        // This is actually common enough to special-case 
932932        if  md. is_empty ( )  { 
0 commit comments