pub struct Constituent<T> {
pub value: T,
pub span: (usize, usize),
}
Fields§
§value: T
§span: (usize, usize)
Trait Implementations§
Source§impl<T: Clone> Clone for Constituent<T>
impl<T: Clone> Clone for Constituent<T>
Source§fn clone(&self) -> Constituent<T>
fn clone(&self) -> Constituent<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<T: Debug> Debug for Constituent<T>
impl<T: Debug> Debug for Constituent<T>
Source§impl<T> Display for Constituent<T>where
T: Display,
impl<T> Display for Constituent<T>where
T: Display,
Source§impl Into<Constituent<Rc<Rule>>> for &ForestState
impl Into<Constituent<Rc<Rule>>> for &ForestState
Source§impl<T: PartialEq> PartialEq for Constituent<T>
impl<T: PartialEq> PartialEq for Constituent<T>
impl<T> StructuralPartialEq for Constituent<T>
Auto Trait Implementations§
impl<T> Freeze for Constituent<T>where
T: Freeze,
impl<T> RefUnwindSafe for Constituent<T>where
T: RefUnwindSafe,
impl<T> Send for Constituent<T>where
T: Send,
impl<T> Sync for Constituent<T>where
T: Sync,
impl<T> Unpin for Constituent<T>where
T: Unpin,
impl<T> UnwindSafe for Constituent<T>where
T: UnwindSafe,
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