[][src]Struct async_graphql::Positioned

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

Represents the position of a AST node

Fields

pos: Posnode: T

Implementations

impl<T> Positioned<T> where
    T: Clone
[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 for Positioned<T> where
    T: Clone + ?Sized
[src]

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

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

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

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

type Target = T

The resulting type after dereferencing.

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

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

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

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

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

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

impl<T> PartialOrd<Positioned<T>> for Positioned<T> where
    T: PartialOrd<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<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,