pub struct List {
pub items: Vec<Form>,
pub line: u32,
}Expand description
A list, with the source line of its opening parenthesis: 0 when it was born in the prelude or made by a macro (S3.1’s explicit zero).
Fields§
§items: Vec<Form>§line: u32Implementations§
Source§impl List
impl List
pub fn new(items: Vec<Form>, line: u32) -> List
pub fn count(&self) -> usize
Sourcepub fn nth(&self, i: usize) -> Result<&Form, Refusal>
pub fn nth(&self, i: usize) -> Result<&Form, Refusal>
VBA Nth: element i, 1-based, refusing past the end.
Sourcepub fn nth_list(&self, i: usize) -> Result<&List, Refusal>
pub fn nth_list(&self, i: usize) -> Result<&List, Refusal>
VBA NthList: element i as a list, refusing an atom there.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for List
impl RefUnwindSafe for List
impl Send for List
impl Sync for List
impl Unpin for List
impl UnsafeUnpin for List
impl UnwindSafe for List
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