pub struct VariablePattern {
pub name: Option<String>,
pub type_id: Option<String>,
}
Expand description
A variable identifier with an optional type annotation.
If the name of the identifier happens to be a single underscore character, the variable is considered nameless and no destructuring will take place.
Fields§
§name: Option<String>
§type_id: Option<String>
Trait Implementations§
Source§impl Clone for VariablePattern
impl Clone for VariablePattern
Source§fn clone(&self) -> VariablePattern
fn clone(&self) -> VariablePattern
Returns a copy 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 VariablePattern
impl Debug for VariablePattern
Source§impl Hash for VariablePattern
impl Hash for VariablePattern
Source§impl PartialEq for VariablePattern
impl PartialEq for VariablePattern
impl Eq for VariablePattern
impl StructuralPartialEq for VariablePattern
Auto Trait Implementations§
impl Freeze for VariablePattern
impl RefUnwindSafe for VariablePattern
impl Send for VariablePattern
impl Sync for VariablePattern
impl Unpin for VariablePattern
impl UnwindSafe for VariablePattern
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