pub struct Discard<'e>(pub Node<'e>, pub Span);Expand description
A discarded form containing the node that was discarded
Tuple Fields§
§0: Node<'e>§1: SpanTrait Implementations§
impl<'e> Eq for Discard<'e>
Source§impl<'e> Ord for Discard<'e>
impl<'e> Ord for Discard<'e>
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<'e> PartialEq for Discard<'e>
impl<'e> PartialEq for Discard<'e>
Source§impl<'e> PartialOrd for Discard<'e>
impl<'e> PartialOrd for Discard<'e>
impl<'e> StructuralPartialEq for Discard<'e>
Auto Trait Implementations§
impl<'e> Freeze for Discard<'e>
impl<'e> RefUnwindSafe for Discard<'e>
impl<'e> Send for Discard<'e>
impl<'e> Sync for Discard<'e>
impl<'e> Unpin for Discard<'e>
impl<'e> UnsafeUnpin for Discard<'e>
impl<'e> UnwindSafe for Discard<'e>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more