pub struct Literal(_);
Implementations
sourceimpl Literal
impl Literal
pub fn kind(&self) -> LiteralKind
sourceimpl Literal
impl Literal
pub const KIND: SyntaxKind = NODE_LITERAL
Trait Implementations
sourceimpl AstNode for Literal
impl AstNode for Literal
type Language = NixLanguage
fn can_cast(kind: SyntaxKind) -> bool
fn cast(from: SyntaxNode) -> Option<Self>
fn syntax(&self) -> &SyntaxNode
fn clone_for_update(&self) -> Selfwhere
Self: Sized,
fn clone_subtree(&self) -> Selfwhere
Self: Sized,
impl Eq for Literal
impl StructuralEq for Literal
impl StructuralPartialEq for Literal
Auto Trait Implementations
impl !RefUnwindSafe for Literal
impl !Send for Literal
impl !Sync for Literal
impl Unpin for Literal
impl !UnwindSafe for Literal
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more