pub enum MatchType {
MatchFull(MatchFull),
MatchPartial(MatchPartial),
MatchSimple(MatchSimple),
}
Variants§
Trait Implementations§
Source§impl AstNode for MatchType
impl AstNode for MatchType
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<MatchPartial> for MatchType
impl From<MatchPartial> for MatchType
Source§fn from(node: MatchPartial) -> MatchType
fn from(node: MatchPartial) -> MatchType
Converts to this type from the input type.
Source§impl From<MatchSimple> for MatchType
impl From<MatchSimple> for MatchType
Source§fn from(node: MatchSimple) -> MatchType
fn from(node: MatchSimple) -> MatchType
Converts to this type from the input type.
impl Eq for MatchType
impl StructuralPartialEq for MatchType
Auto Trait Implementations§
impl Freeze for MatchType
impl !RefUnwindSafe for MatchType
impl !Send for MatchType
impl !Sync for MatchType
impl Unpin for MatchType
impl !UnwindSafe for MatchType
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