[][src]Struct async_graphql_parser::Positioned

pub struct Positioned<T: ?Sized> {
    pub pos: Pos,
    pub node: T,
}

Represents the position of a AST node

Fields

pos: Posnode: T

Implementations

impl<T: Clone> Positioned<T>[src]

pub fn clone_inner(&self) -> T[src]

impl<T> Positioned<T>[src]

pub fn into_inner(self) -> T[src]

pub fn position(&self) -> Pos[src]

Get start position

Trait Implementations

impl Borrow<str> for Positioned<String>[src]

impl BorrowMut<str> for Positioned<String>[src]

impl<T: Clone + ?Sized> Clone for Positioned<T>[src]

impl<T: Copy + ?Sized> Copy for Positioned<T>[src]

impl<T: Debug + ?Sized> Debug for Positioned<T>[src]

impl<T: Default + ?Sized> Default for Positioned<T>[src]

impl<T: ?Sized> Deref for Positioned<T>[src]

type Target = T

The resulting type after dereferencing.

impl<T: ?Sized> DerefMut for Positioned<T>[src]

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

impl<T: Ord> Eq for Positioned<T>[src]

impl<T: Hash> Hash for Positioned<T>[src]

impl<T: Ord> Ord for Positioned<T>[src]

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

impl<T: PartialOrd> PartialOrd<Positioned<T>> for Positioned<T>[src]

Auto Trait Implementations

impl<T: ?Sized> RefUnwindSafe for Positioned<T> where
    T: RefUnwindSafe

impl<T: ?Sized> Send for Positioned<T> where
    T: Send

impl<T: ?Sized> Sync for Positioned<T> where
    T: Sync

impl<T: ?Sized> Unpin for Positioned<T> where
    T: Unpin

impl<T: ?Sized> UnwindSafe for Positioned<T> where
    T: UnwindSafe

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> RuleType for T where
    T: Eq + Ord + Copy + Debug + Hash
[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.