pub fn new_with_marks(start: Marker, end: Marker) -> Self {
        Self {
            start: Some(start),
            end: Some(end),
        }
    }
/// Create a span with both start and end markers
///
/// When we know both the start and end of a node, we can create a span
/// which has all that knowledge.
///
/// ```
/// # use marked_yaml::{Marker,Span};
/// let span = Span::new_with_marks(Marker::new(0, 1, 1), Marker::new(10, 2, 1));
/// # assert_eq!(span.start().unwrap(), &Marker::new(0, 1, 1));
/// # assert_eq!(span.end().unwrap(), &Marker::new(10, 2, 1));
/// ```
Create a span with both start and end markers
When we know both the start and end of a node, we can create a span
which has all that knowledge.


Create a span with both start and end markers When we know both the start and end of a node we can create a span which has all that knowledge .
pub fn new_with_marks(start: Marker, end: Marker) -> Self {
        Self {
            start: Some(start),
            end: Some(end),
        }
    }
pub fn new_with_marks ( start : Marker , end : Marker ) -> Self { Self { start : Some ( start ) , end : Some ( end ) , } }
Create a span with both start and end markers
When we know both the start and end of a node, we can create a span
which has all that knowledge.
Create a span with both start and end markers When we know both the start and end of a node we can create a span which has all that knowledge .
start
Marker
end
Marker
start
Marker
end
Marker
use marked_yaml::{marker,span};
None
assert_eq!(span.start().unwrap(), &marker::new(0, 1, 1));
None
assert_eq!(span.end().unwrap(), &marker::new(10, 2, 1));
None