pub struct RubyCaseIn {
pub scrutinee: String,
pub arms: Vec<(RubyPattern, String)>,
pub else_body: Option<String>,
}Expand description
Ruby case/in expression (pattern matching)
Fields§
§scrutinee: String§arms: Vec<(RubyPattern, String)>§else_body: Option<String>Trait Implementations§
Source§impl Clone for RubyCaseIn
impl Clone for RubyCaseIn
Source§fn clone(&self) -> RubyCaseIn
fn clone(&self) -> RubyCaseIn
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RubyCaseIn
impl Debug for RubyCaseIn
Auto Trait Implementations§
impl Freeze for RubyCaseIn
impl RefUnwindSafe for RubyCaseIn
impl Send for RubyCaseIn
impl Sync for RubyCaseIn
impl Unpin for RubyCaseIn
impl UnsafeUnpin for RubyCaseIn
impl UnwindSafe for RubyCaseIn
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