[][src]Struct vhdl_parser::ast::WithPos

pub struct WithPos<T> {
    pub item: T,
    pub pos: SrcPos,
}

Fields

item: Tpos: SrcPos

Methods

impl WithPos<Designator>[src]

impl<T> WithPos<T>[src]

pub fn from(item: T, pos: impl Into<SrcPos>) -> WithPos<T>[src]

pub fn map_into<F, U>(self, f: F) -> WithPos<U> where
    F: FnOnce(T) -> U, 
[src]

pub fn try_map_into<F, U>(self, f: F) -> Result<WithPos<U>, Diagnostic> where
    F: FnOnce(T) -> Result<U, String>, 
[src]

pub fn combine_pos_with(self, other: &dyn AsRef<SrcPos>) -> Self[src]

Trait Implementations

impl<T> AsRef<SrcPos> for WithPos<T>[src]

impl<T: Clone> Clone for WithPos<T>[src]

impl<T: Debug> Debug for WithPos<T>[src]

impl<T: Display> Display for WithPos<T>[src]

impl<'a, T: HasIdent> From<&'a T> for WithPos<Designator>[src]

impl From<WithPos<SelectedName>> for WithPos<Name>[src]

impl From<WithPos<Symbol>> for WithPos<Designator>[src]

impl<T: HasDesignator> HasDesignator for WithPos<T>[src]

impl<T> Into<SrcPos> for WithPos<T>[src]

impl<T: PartialEq> PartialEq<WithPos<T>> for WithPos<T>[src]

impl<T> Search<T> for WithPos<Target>[src]

impl<T> Search<T> for WithPos<WithRef<Designator>>[src]

impl<T> Search<T> for WithPos<SelectedName>[src]

impl<T> Search<T> for WithPos<Name>[src]

impl<T> Search<T> for WithPos<ElementConstraint>[src]

impl<T> Search<T> for WithPos<SubtypeConstraint>[src]

impl<T> Search<T> for WithPos<Expression>[src]

impl<T> Search<T> for WithPos<ContextItem>[src]

impl<T> StructuralPartialEq for WithPos<T>[src]

Auto Trait Implementations

impl<T> !RefUnwindSafe for WithPos<T>

impl<T> Send for WithPos<T> where
    T: Send

impl<T> Sync for WithPos<T> where
    T: Sync

impl<T> Unpin for WithPos<T> where
    T: Unpin

impl<T> !UnwindSafe for WithPos<T>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.