pub struct MapEntry(/* private fields */);Expand description
A single key: value entry inside a Map.
Implementations§
Source§impl MapEntry
impl MapEntry
Sourcepub fn cast(node: SyntaxNode) -> Option<Self>
pub fn cast(node: SyntaxNode) -> Option<Self>
Wrap a SyntaxKind::MapEntry 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 MapEntry
impl StructuralPartialEq for MapEntry
Auto Trait Implementations§
impl !RefUnwindSafe for MapEntry
impl !Send for MapEntry
impl !Sync for MapEntry
impl !UnwindSafe for MapEntry
impl Freeze for MapEntry
impl Unpin for MapEntry
impl UnsafeUnpin for MapEntry
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