[−][src]Enum rune::ast::Condition
An if condition.
Variants
Expr(Expr)
A regular expression.
A pattern match.
Trait Implementations
impl Clone for Condition
[src]
impl Debug for Condition
[src]
impl Eq for Condition
[src]
impl Parse for Condition
[src]
Parse a condition.
Examples
use rune::{testing, ast}; testing::roundtrip::<ast::Condition>("true"); testing::roundtrip::<ast::Condition>("let [a, ..] = v");
pub fn parse(p: &mut Parser<'_>) -> Result<Self, ParseError>
[src]
impl PartialEq<Condition> for Condition
[src]
impl Spanned for Condition
[src]
impl StructuralEq for Condition
[src]
impl StructuralPartialEq for Condition
[src]
impl ToTokens for Condition
[src]
pub fn to_tokens(&self, context: &MacroContext, stream: &mut TokenStream)
[src]
Auto Trait Implementations
impl RefUnwindSafe for Condition
[src]
impl Send for Condition
[src]
impl Sync for Condition
[src]
impl Unpin for Condition
[src]
impl UnwindSafe for Condition
[src]
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>,