pub fn render<D, F>(self, renderfn: F) -> RenderedMarker<D>
    where
        D: Display,
        F: FnOnce(usize) -> D,
    {
        RenderedMarker {
            source: renderfn(self.source),
            line: self.line,
            column: self.column,
        }
    }
/// Render this marker
///
/// Markers have a source identifier, typically as passed to `parse_yaml()`
/// but have no way in and of themselves to turn that into a useful name.
/// This function allows you to create a rendered marker which knows how
/// to show the source name.
///
/// ```
/// # use marked_yaml::Marker;
/// # let marker = Marker::new(0, 1, 2);
/// let rendered = marker.render(|_| "name");
/// assert_eq!(format!("{}", rendered), "name:1:2")
/// ```
Render this marker
Markers have a source identifier, typically as passed to `parse_yaml()`
but have no way in and of themselves to turn that into a useful name.
This function allows you to create a rendered marker which knows how
to show the source name.


Render this marker Markers have a source identifier typically as passed to ` parse_yaml () ` but have no way in and of themselves to turn that into a useful name . This function allows you to create a rendered marker which knows how to show the source name .
pub fn render<D, F>(self, renderfn: F) -> RenderedMarker<D>
    where
        D: Display,
        F: FnOnce(usize) -> D,
    {
        RenderedMarker {
            source: renderfn(self.source),
            line: self.line,
            column: self.column,
        }
    }
pub fn render < D , F > ( self , renderfn : F ) -> RenderedMarker < D > where D : Display , F : FnOnce ( usize ) -> D , { RenderedMarker { source : renderfn ( self . source ) , line : self . line , column : self . column , } }
Render this marker
Markers have a source identifier, typically as passed to `parse_yaml()`
but have no way in and of themselves to turn that into a useful name.
Render this marker Markers have a source identifier typically as passed to ` parse_yaml () ` but have no way in and of themselves to turn that into a useful name .
self
renderfn
F
self
renderfn
F
use marked_yaml::marker;
None
let marker = marker::new(0, 1, 2);
None