Enum analisar::ast::Expression [−][src]
Variants
Numeral(Numeral<'a>)
LiteralString(LiteralString<'a>)
Name(Name<'a>)
FunctionDef(FuncBody<'a>)
Fields of BinOp
Fields of UnaryOp
op: UnaryOperator
exp: Box<Expression<'a>>
FuncCall(FunctionCall<'a>)
Implementations
impl<'a> Expression<'a>
[src]
pub fn string(s: &'a str) -> Self
[src]
pub fn func_call(subject: Expression<'a>, args: Args<'a>) -> Self
[src]
pub fn method_call(subject: Expression<'a>, args: Args<'a>) -> Self
[src]
pub fn binary(
left: Expression<'a>,
op: BinaryOperator,
right: Expression<'a>
) -> Self
[src]
left: Expression<'a>,
op: BinaryOperator,
right: Expression<'a>
) -> Self
pub fn unary(op: UnaryOperator, exp: Expression<'a>) -> Self
[src]
pub fn name_from(s: &'a str) -> Self
[src]
pub fn numeral_from(s: &'a str) -> Self
[src]
Trait Implementations
impl<'a> Debug for Expression<'a>
[src]
impl<'a> PartialEq<Expression<'a>> for Expression<'a>
[src]
fn eq(&self, other: &Expression<'a>) -> bool
[src]
fn ne(&self, other: &Expression<'a>) -> bool
[src]
impl<'a> StructuralPartialEq for Expression<'a>
[src]
Auto Trait Implementations
impl<'a> RefUnwindSafe for Expression<'a>
[src]
impl<'a> Send for Expression<'a>
[src]
impl<'a> Sync for Expression<'a>
[src]
impl<'a> Unpin for Expression<'a>
[src]
impl<'a> UnwindSafe for Expression<'a>
[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, 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>,