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