Struct gluon_base::pos::Spanned
[−]
[src]
pub struct Spanned<T, Pos> { pub span: Span<Pos>, pub value: T, }
Fields
span: Span<Pos>
value: T
Methods
impl<T, Pos> Spanned<T, Pos>
[src]
Trait Implementations
impl<T: Typed> Typed for Spanned<T, BytePos>
[src]
impl<T: Copy, Pos: Copy> Copy for Spanned<T, Pos>
[src]
impl<T: Clone, Pos: Clone> Clone for Spanned<T, Pos>
[src]
fn clone(&self) -> Spanned<T, Pos>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl<T: Debug, Pos: Debug> Debug for Spanned<T, Pos>
[src]
impl<T: PartialEq, Pos> PartialEq for Spanned<T, Pos>
[src]
fn eq(&self, other: &Spanned<T, Pos>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.