pub struct Decoration { /* private fields */ }Expand description
A type-erased value attached to a parser instance by a native plugin.
Equality-aware decorations created with Decoration::new can be
compared when instances merge. Opaque decorations compare by shared
allocation identity, which permits closures and other native handles to
be inherited without pretending they have value equality.
Implementations§
Source§impl Decoration
impl Decoration
Trait Implementations§
Source§impl Clone for Decoration
impl Clone for Decoration
Auto Trait Implementations§
impl !RefUnwindSafe for Decoration
impl !UnwindSafe for Decoration
impl Freeze for Decoration
impl Send for Decoration
impl Sync for Decoration
impl Unpin for Decoration
impl UnsafeUnpin for Decoration
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