[−][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<Id> From<Spanned<Type<Id, AstType<Id>>, ByteIndex>> for AstType<Id>
[src]
impl<T: Clone, Pos: Clone> Clone for Spanned<T, Pos>
[src]
impl<T: Copy, Pos: Copy> Copy for Spanned<T, Pos>
[src]
impl<T: Default, Pos: Default> Default for Spanned<T, Pos>
[src]
impl<T: Eq, Pos: Eq> Eq 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: Display, Pos: Display + Copy> Display for Spanned<T, Pos>
[src]
impl<T: Debug, Pos: Debug> Debug for Spanned<T, Pos>
[src]
impl<T, Pos> Hash for Spanned<T, Pos> where
T: Hash,
Pos: Hash + Copy,
[src]
T: Hash,
Pos: Hash + Copy,
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,
impl<T, Pos> Unpin for Spanned<T, Pos> where
Pos: Unpin,
T: Unpin,
Pos: Unpin,
T: Unpin,
impl<T, Pos> UnwindSafe for Spanned<T, Pos> where
Pos: UnwindSafe,
T: UnwindSafe,
Pos: UnwindSafe,
T: UnwindSafe,
impl<T, Pos> RefUnwindSafe for Spanned<T, Pos> where
Pos: RefUnwindSafe,
T: RefUnwindSafe,
Pos: RefUnwindSafe,
T: RefUnwindSafe,
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> 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, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,