pub struct VariantCase {
pub pattern: Pattern,
pub body: Expr,
pub span: Span,
}Expand description
A variant case
Fields§
§pattern: PatternThe pattern for this case.
body: ExprThe body expression for this case.
span: SpanThe source code span.
Trait Implementations§
Source§impl Clone for VariantCase
impl Clone for VariantCase
Source§fn clone(&self) -> VariantCase
fn clone(&self) -> VariantCase
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 VariantCase
impl Debug for VariantCase
Source§impl<'de> Deserialize<'de> for VariantCase
impl<'de> Deserialize<'de> for VariantCase
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for VariantCase
Source§impl Hash for VariantCase
impl Hash for VariantCase
Source§impl PartialEq for VariantCase
impl PartialEq for VariantCase
Source§fn eq(&self, other: &VariantCase) -> bool
fn eq(&self, other: &VariantCase) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for VariantCase
impl Serialize for VariantCase
impl StructuralPartialEq for VariantCase
Auto Trait Implementations§
impl Freeze for VariantCase
impl RefUnwindSafe for VariantCase
impl Send for VariantCase
impl Sync for VariantCase
impl Unpin for VariantCase
impl UnsafeUnpin for VariantCase
impl UnwindSafe for VariantCase
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