Struct vesta_syntax::CaseArm [−][src]
A single arm of a case!
, i.e. 1(x, Some(y)) => x + y,
. This implements Parse
.
Fields
tag: Option<usize>
The tag for this case, or None
if the case was a catch-all _
case.
tag_span: Span
The span for the tag.
arm: Arm
The Arm
for the case, i.e. the pattern following the tag, its =>
, and its body.
Trait Implementations
impl Clone for CaseArm
[src]
impl Parse for CaseArm
[src]
fn parse(input: ParseStream<'_>) -> Result<Self>
[src]
Auto Trait Implementations
impl RefUnwindSafe for CaseArm
impl !Send for CaseArm
impl !Sync for CaseArm
impl Unpin for CaseArm
impl UnwindSafe for CaseArm
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,