pub enum Form {
Sym(String),
Str(String),
List(List),
}Expand description
One form: a symbol (a number is a symbol until someone asks), a string literal’s content, or a list.
Variants§
Implementations§
Source§impl Form
impl Form
pub fn sym(text: &str) -> Form
pub fn string(content: &str) -> Form
Sourcepub fn list(items: Vec<Form>) -> Form
pub fn list(items: Vec<Form>) -> Form
A list with no line, as every list the macro system makes has none.
pub fn is_list(&self) -> bool
Sourcepub fn is_keyword_arg(&self) -> bool
pub fn is_keyword_arg(&self) -> bool
VBA IsKeywordArg: a symbol that starts with : and is more than
the colon.
Sourcepub fn atom_text(&self) -> Option<String>
pub fn atom_text(&self) -> Option<String>
The VBA’s CStr(v) of an atom: a symbol’s text, or a string
literal’s content behind its quote marker. None for a list.
pub fn as_list(&self) -> Option<&List>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Form
impl RefUnwindSafe for Form
impl Send for Form
impl Sync for Form
impl Unpin for Form
impl UnsafeUnpin for Form
impl UnwindSafe for Form
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