pub enum PhpUnaryOperator {
Plus,
Minus,
LogicalNot,
BitwiseNot,
PreIncrement,
PostIncrement,
PreDecrement,
PostDecrement,
ErrorSuppression,
}Expand description
PHP unary operators.
Variants§
Plus
Unary plus (+).
Minus
Unary minus (-).
LogicalNot
Logical NOT (!).
BitwiseNot
Bitwise NOT (~).
PreIncrement
Pre-increment (++$a).
PostIncrement
Post-increment ($a++).
PreDecrement
Pre-decrement (--$a).
PostDecrement
Post-decrement ($a--).
ErrorSuppression
Error suppression (@).
Trait Implementations§
Source§impl Clone for PhpUnaryOperator
impl Clone for PhpUnaryOperator
Source§fn clone(&self) -> PhpUnaryOperator
fn clone(&self) -> PhpUnaryOperator
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 Debug for PhpUnaryOperator
impl Debug for PhpUnaryOperator
Source§impl<'de> Deserialize<'de> for PhpUnaryOperator
impl<'de> Deserialize<'de> for PhpUnaryOperator
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PhpUnaryOperator
impl PartialEq for PhpUnaryOperator
Source§impl Serialize for PhpUnaryOperator
impl Serialize for PhpUnaryOperator
impl StructuralPartialEq for PhpUnaryOperator
Auto Trait Implementations§
impl Freeze for PhpUnaryOperator
impl RefUnwindSafe for PhpUnaryOperator
impl Send for PhpUnaryOperator
impl Sync for PhpUnaryOperator
impl Unpin for PhpUnaryOperator
impl UnsafeUnpin for PhpUnaryOperator
impl UnwindSafe for PhpUnaryOperator
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