pub enum Param {
Pattern(Pattern),
IdentParam(IdentParam),
}Variants§
Pattern(Pattern)
IdentParam(IdentParam)
Trait Implementations§
Source§impl AstNode for Param
impl AstNode for Param
type Language = NixLanguage
fn can_cast(kind: SyntaxKind) -> bool
fn cast(syntax: 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 Param
Source§impl From<IdentParam> for Param
impl From<IdentParam> for Param
Source§fn from(node: IdentParam) -> Param
fn from(node: IdentParam) -> Param
Converts to this type from the input type.
impl StructuralPartialEq for Param
Auto Trait Implementations§
impl !RefUnwindSafe for Param
impl !Send for Param
impl !Sync for Param
impl !UnwindSafe for Param
impl Freeze for Param
impl Unpin for Param
impl UnsafeUnpin for Param
Blanket Implementations§
impl<T> AstNode for Twhere
T: AstNode<Language = NixLanguage>,
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