pub struct EnvironmentView<'a> {
pub name: &'a str,
pub args: &'a [ArgumentSlot],
pub body: NodeId,
}Expand description
A read-only view of an environment node for use in rule matching.
Fields§
§name: &'a strThe environment name (as it appears between \begin{…} and \end{…}).
args: &'a [ArgumentSlot]The explicit argument slots parsed for this environment.
body: NodeIdThe body subtree between \begin and \end.
Trait Implementations§
Source§impl<'a> Clone for EnvironmentView<'a>
impl<'a> Clone for EnvironmentView<'a>
Source§fn clone(&self) -> EnvironmentView<'a>
fn clone(&self) -> EnvironmentView<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a> Copy for EnvironmentView<'a>
Auto Trait Implementations§
impl<'a> Freeze for EnvironmentView<'a>
impl<'a> RefUnwindSafe for EnvironmentView<'a>
impl<'a> Send for EnvironmentView<'a>
impl<'a> Sync for EnvironmentView<'a>
impl<'a> Unpin for EnvironmentView<'a>
impl<'a> UnsafeUnpin for EnvironmentView<'a>
impl<'a> UnwindSafe for EnvironmentView<'a>
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