[−][src]Struct gluon_base::pos::Spanned
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]
type Ident = T::Ident
fn try_type_of(
&self,
env: &dyn TypeEnv<Type = ArcType>
) -> Result<ArcType<T::Ident>, String>
[src]
&self,
env: &dyn TypeEnv<Type = ArcType>
) -> Result<ArcType<T::Ident>, String>
fn env_type_of(&self, env: &dyn TypeEnv<Type = ArcType>) -> ArcType<Self::Ident>
[src]
impl<E> AsDiagnostic for Spanned<E, BytePos> where
E: AsDiagnostic,
[src]
E: AsDiagnostic,
fn as_diagnostic(&self) -> Diagnostic
[src]
impl<Id> AsMut<Spanned<Type<Id, AstType<Id>>, ByteIndex>> for AstType<Id>
[src]
fn as_mut(&mut self) -> &mut SpannedAstType<Id>
[src]
impl<T: Copy, Pos: Copy> Copy for Spanned<T, Pos>
[src]
impl<T: PartialEq, Pos: PartialEq> PartialEq<Spanned<T, Pos>> for Spanned<T, Pos>
[src]
fn eq(&self, other: &Spanned<T, Pos>) -> bool
[src]
fn ne(&self, other: &Spanned<T, Pos>) -> bool
[src]
impl<T: Default, Pos: Default> Default for Spanned<T, Pos>
[src]
impl<Id> From<Spanned<Type<Id, AstType<Id>>, ByteIndex>> for AstType<Id>
[src]
impl<T: Clone, Pos: Clone> Clone for Spanned<T, Pos>
[src]
fn clone(&self) -> Spanned<T, Pos>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<T: Eq, Pos: Eq> Eq for Spanned<T, Pos>
[src]
impl<T: Display, Pos: Display + Copy> Display for Spanned<T, Pos>
[src]
impl<T: Debug, Pos: Debug> Debug for Spanned<T, Pos>
[src]
Auto Trait Implementations
impl<T, Pos> Send for Spanned<T, Pos> where
Pos: Send,
T: Send,
Pos: Send,
T: Send,
impl<T, Pos> Sync for Spanned<T, Pos> where
Pos: Sync,
T: Sync,
Pos: Sync,
T: Sync,
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,