Struct gluon_base::pos::Spanned
source · pub struct Spanned<T, Pos> {
pub span: Span<Pos>,
pub value: T,
}
Fields§
§span: Span<Pos>
§value: T
Implementations§
Trait Implementations§
source§impl<E> AsDiagnostic for Spanned<E, BytePos>where
E: AsDiagnostic,
impl<E> AsDiagnostic for Spanned<E, BytePos>where
E: AsDiagnostic,
fn as_diagnostic(&self, map: &CodeMap) -> Diagnostic<FileId>
source§impl<'ast, Id> AsMut<Spanned<Type<Id, AstType<'ast, Id>>, ByteIndex>> for AstType<'ast, Id>
impl<'ast, Id> AsMut<Spanned<Type<Id, AstType<'ast, Id>>, ByteIndex>> for AstType<'ast, Id>
source§fn as_mut(&mut self) -> &mut SpannedAstType<'ast, Id>
fn as_mut(&mut self) -> &mut SpannedAstType<'ast, Id>
Converts this type into a mutable reference of the (usually inferred) input type.
source§impl<T: PartialEq, Pos: PartialEq> PartialEq for Spanned<T, Pos>
impl<T: PartialEq, Pos: PartialEq> PartialEq for Spanned<T, Pos>
impl<T: Copy, Pos: Copy> Copy for Spanned<T, Pos>
impl<T: Eq, Pos: Eq> Eq for Spanned<T, Pos>
impl<T, Pos> StructuralEq for Spanned<T, Pos>
impl<T, Pos> StructuralPartialEq for Spanned<T, Pos>
Auto Trait Implementations§
impl<T, Pos> RefUnwindSafe for Spanned<T, Pos>where
Pos: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, Pos> Send for Spanned<T, Pos>
impl<T, Pos> Sync for Spanned<T, Pos>
impl<T, Pos> Unpin for Spanned<T, Pos>
impl<T, Pos> UnwindSafe for Spanned<T, Pos>where
Pos: UnwindSafe,
T: UnwindSafe,
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