pub enum Callable<'s> {
Type(TokenRef<'s>),
Expression(Box<Expression<'s>>),
}Variants§
Implementations§
Source§impl<'s> Callable<'s>
impl<'s> Callable<'s>
Sourcepub const fn is_expression(&self) -> bool
pub const fn is_expression(&self) -> bool
Returns true if the enum is Callable::Expression otherwise false
Trait Implementations§
impl<'s> StructuralPartialEq for Callable<'s>
Auto Trait Implementations§
impl<'s> Freeze for Callable<'s>
impl<'s> RefUnwindSafe for Callable<'s>
impl<'s> Send for Callable<'s>
impl<'s> Sync for Callable<'s>
impl<'s> Unpin for Callable<'s>
impl<'s> UnsafeUnpin for Callable<'s>
impl<'s> UnwindSafe for Callable<'s>
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