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,
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.
source§impl TryFrom<Param> for IdentParam
impl TryFrom<Param> for IdentParam
impl Eq for Param
impl StructuralPartialEq for Param
Auto Trait Implementations§
impl Freeze for Param
impl !RefUnwindSafe for Param
impl !Send for Param
impl !Sync for Param
impl Unpin for Param
impl !UnwindSafe for Param
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)