Struct move_ir_types::location::Spanned
source · pub struct Spanned<T> {
pub loc: Loc,
pub value: T,
}
Fields§
§loc: Loc
§value: T
Implementations§
Trait Implementations§
source§impl<T: Ord> Ord for Spanned<T>
impl<T: Ord> Ord for Spanned<T>
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl<T: PartialEq> PartialEq<Spanned<T>> for Spanned<T>
impl<T: PartialEq> PartialEq<Spanned<T>> for Spanned<T>
source§impl<T: PartialOrd> PartialOrd<Spanned<T>> for Spanned<T>
impl<T: PartialOrd> PartialOrd<Spanned<T>> for Spanned<T>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more