pub struct Unit(/* private fields */);Expand description
The unit value ().
Implementations§
Source§impl Unit
impl Unit
Sourcepub fn cast(node: SyntaxNode) -> Option<Self>
pub fn cast(node: SyntaxNode) -> Option<Self>
Wrap a SyntaxKind::Unit node, or None for any other kind.
Sourcepub fn syntax(&self) -> &SyntaxNode
pub fn syntax(&self) -> &SyntaxNode
The underlying SyntaxNode.
Trait Implementations§
impl Eq for Unit
impl StructuralPartialEq for Unit
Auto Trait Implementations§
impl !RefUnwindSafe for Unit
impl !Send for Unit
impl !Sync for Unit
impl !UnwindSafe for Unit
impl Freeze for Unit
impl Unpin for Unit
impl UnsafeUnpin for Unit
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