pub struct PrefixExpr<T> {
pub op: PrefixOp,
pub rhs: Box<Expression<T>>,
pub position: Position,
pub info: T,
}Fields§
§op: PrefixOp§rhs: Box<Expression<T>>§position: Position§info: TImplementations§
Source§impl PrefixExpr<()>
impl PrefixExpr<()>
pub fn from_op_rhs( op_pair: Pair<'_, Rule>, rhs: Expression<()>, file: &str, ) -> PrefixExpr<()>
Trait Implementations§
Source§impl<T: Clone> Clone for PrefixExpr<T>
impl<T: Clone> Clone for PrefixExpr<T>
Source§fn clone(&self) -> PrefixExpr<T>
fn clone(&self) -> PrefixExpr<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T: Debug> Debug for PrefixExpr<T>
impl<T: Debug> Debug for PrefixExpr<T>
Source§impl<T: Ord> Ord for PrefixExpr<T>
impl<T: Ord> Ord for PrefixExpr<T>
Source§fn cmp(&self, other: &PrefixExpr<T>) -> Ordering
fn cmp(&self, other: &PrefixExpr<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 PrefixExpr<T>
impl<T: PartialEq> PartialEq for PrefixExpr<T>
Source§impl<T: PartialOrd> PartialOrd for PrefixExpr<T>
impl<T: PartialOrd> PartialOrd for PrefixExpr<T>
impl<T: Eq> Eq for PrefixExpr<T>
impl<T> StructuralPartialEq for PrefixExpr<T>
Auto Trait Implementations§
impl<T> Freeze for PrefixExpr<T>where
T: Freeze,
impl<T> RefUnwindSafe for PrefixExpr<T>where
T: RefUnwindSafe,
impl<T> Send for PrefixExpr<T>where
T: Send,
impl<T> Sync for PrefixExpr<T>where
T: Sync,
impl<T> Unpin for PrefixExpr<T>where
T: Unpin,
impl<T> UnwindSafe for PrefixExpr<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