pub struct CompilerDirective<T> {
pub directive: Expression<()>,
pub statement: Option<Box<Statement<T>>>,
pub position: Position,
}
Fields§
§directive: Expression<()>
§statement: Option<Box<Statement<T>>>
§position: Position
Implementations§
Source§impl CompilerDirective<()>
impl CompilerDirective<()>
Trait Implementations§
Source§impl<T: Clone> Clone for CompilerDirective<T>
impl<T: Clone> Clone for CompilerDirective<T>
Source§fn clone(&self) -> CompilerDirective<T>
fn clone(&self) -> CompilerDirective<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<T: Debug> Debug for CompilerDirective<T>
impl<T: Debug> Debug for CompilerDirective<T>
Source§impl<T: Ord> Ord for CompilerDirective<T>
impl<T: Ord> Ord for CompilerDirective<T>
Source§fn cmp(&self, other: &CompilerDirective<T>) -> Ordering
fn cmp(&self, other: &CompilerDirective<T>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<T: PartialEq> PartialEq for CompilerDirective<T>
impl<T: PartialEq> PartialEq for CompilerDirective<T>
Source§impl<T: PartialOrd> PartialOrd for CompilerDirective<T>
impl<T: PartialOrd> PartialOrd for CompilerDirective<T>
impl<T: Eq> Eq for CompilerDirective<T>
impl<T> StructuralPartialEq for CompilerDirective<T>
Auto Trait Implementations§
impl<T> Freeze for CompilerDirective<T>
impl<T> RefUnwindSafe for CompilerDirective<T>where
T: RefUnwindSafe,
impl<T> Send for CompilerDirective<T>where
T: Send,
impl<T> Sync for CompilerDirective<T>where
T: Sync,
impl<T> Unpin for CompilerDirective<T>
impl<T> UnwindSafe for CompilerDirective<T>where
T: UnwindSafe,
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