pub struct Example {
pub scope_stack: Vec<String>,
pub span: Span,
pub body: Vec<Block>,
pub preceded_by_delimiter: bool,
}Expand description
One matched example: the heading scope above it (outer→inner) plus its body blocks (first is the candidate primary block, then any trailing attachments).
Fields§
§scope_stack: Vec<String>§span: Span§body: Vec<Block>§preceded_by_delimiter: boolTrue when a heading or thematic break (---) sits between this candidate
and the previous one — i.e. a syntactic delimiter separates them (also
true for the first candidate). The planner uses it to decide grouping: a
matching candidate with this false merges into the open example rather
than starting a new one. See ADR 0012.
Trait Implementations§
impl Eq for Example
impl StructuralPartialEq for Example
Auto Trait Implementations§
impl Freeze for Example
impl RefUnwindSafe for Example
impl Send for Example
impl Sync for Example
impl Unpin for Example
impl UnsafeUnpin for Example
impl UnwindSafe for Example
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more