Struct lib_ruby_parser::nodes::Pin
source · [−]Expand description
Represents a pattern based on a “pinned” variable (e.g. ^foo
)
Fields
var: Box<Node>
Variable that is pinned
selector_l: Loc
Location of the ^
operator
case foo; in ^bar; end
~
expression_l: Loc
Location of the full expression
case foo; in ^bar; end
~~~~
Trait Implementations
impl StructuralPartialEq for Pin
Auto Trait Implementations
impl RefUnwindSafe for Pin
impl Send for Pin
impl Sync for Pin
impl Unpin for Pin
impl UnwindSafe for Pin
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