Struct vesta_syntax::CaseInput [−][src]
The input syntax to vesta
’s case!
macro. This implements Parse
.
Fields
scrutinee: Expr
The scrutinee of the case!
macro: the thing upon which we are matching.
brace_token: Brace
The brace token wrapping all the cases.
arms: Vec<CaseArm>
The cases, as input by the user.
Implementations
impl CaseInput
[src]
pub fn compile(self) -> Result<CaseOutput, Error>
[src]
Compile a CaseInput
into a CaseOutput
, if it is valid input, or return an Error
if it is missing cases.
Trait Implementations
impl Clone for CaseInput
[src]
impl Parse for CaseInput
[src]
fn parse(input: ParseStream<'_>) -> Result<Self>
[src]
Auto Trait Implementations
impl RefUnwindSafe for CaseInput
impl !Send for CaseInput
impl !Sync for CaseInput
impl Unpin for CaseInput
impl UnwindSafe for CaseInput
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>,