Struct lib_ruby_parser::nodes::Pin
source · #[repr(C)]pub struct Pin {
pub var: Box<Node>,
pub selector_l: Loc,
pub expression_l: Loc,
}
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 Freeze for Pin
impl RefUnwindSafe for Pin
impl Send for Pin
impl Sync for Pin
impl Unpin for Pin
impl UnwindSafe for Pin
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