Struct async_graphql_parser::Positioned [−][src]
Expand description
An AST node that stores its original position.
Fields
pos: PosThe position of the node.
node: TThe node itself.
Implementations
Create a new positioned node from the node and its position.
Get the inner node.
This is most useful in callback chains where Positioned::into_inner is easier to read than
|positioned| positioned.node.
Create a new positioned node with the same position as this one.
Map the inner value of this positioned node.
Trait Implementations
Mutably borrows from an owned value. Read more
Returns the “default value” for a type. Read more
This method returns an ordering between self and other values if one exists. Read more
This method tests less than (for self and other) and is used by the < operator. Read more
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
This method tests greater than (for self and other) and is used by the > operator. Read more
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
Mutably borrows from an owned value. Read more