[−][src]Enum hatter::Stmt
Stmt is an AST node.
Variants
Value(Value)
Word(Symbol)
Tag(Tag)
Implementations
impl Stmt
[src]
pub fn is_some(&self) -> bool
[src]
Is this Stmt an actual statement?
pub fn is_none(&self) -> bool
[src]
Is this Stmt::None?
pub fn to_str(&self) -> &str
[src]
If this is a String or a Word, get a &str of its literal value.
pub fn to_string(&self) -> String
[src]
Create a String representation, for debug purposes.
Trait Implementations
impl Clone for Stmt
[src]
impl Debug for Stmt
[src]
impl<'_> From<&'_ str> for Stmt
[src]
impl From<Stmt> for Value
[src]
impl From<String> for Stmt
[src]
impl From<Tag> for Stmt
[src]
impl PartialEq<Stmt> for Stmt
[src]
impl StructuralPartialEq for Stmt
[src]
Auto Trait Implementations
impl !RefUnwindSafe for Stmt
impl !Send for Stmt
impl !Sync for Stmt
impl Unpin for Stmt
impl !UnwindSafe for Stmt
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>,