Struct moore_svlog::Spanned [−][src]
pub struct Spanned<T> {
pub value: T,
pub span: Span,
}
Expand description
A wrapper that associates a span with a value.
Fields
value: T
span: Span
Implementations
Wrap a given value together with the span it covers.
Map the spanned value, preserving the span.
Trait Implementations
Apply a function to this node.
Obtain a span which can be used to refer to this node in error messages
presented to humans. This will generally be the name for things like
entities, processes, and variables. Defaults to return whatever span()
returns. Read more
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl<T> RefUnwindSafe for Spanned<T> where
T: RefUnwindSafe,
impl<T> UnwindSafe for Spanned<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more