pub struct PhpTernaryOp {
pub condition: Box<PhpExpression>,
pub true_expr: Option<Box<PhpExpression>>,
pub false_expr: Box<PhpExpression>,
}Expand description
PHP 三元操作
Fields§
§condition: Box<PhpExpression>§true_expr: Option<Box<PhpExpression>>§false_expr: Box<PhpExpression>Trait Implementations§
Source§impl Clone for PhpTernaryOp
impl Clone for PhpTernaryOp
Source§fn clone(&self) -> PhpTernaryOp
fn clone(&self) -> PhpTernaryOp
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 PhpTernaryOp
impl Debug for PhpTernaryOp
Source§impl<'de> Deserialize<'de> for PhpTernaryOp
impl<'de> Deserialize<'de> for PhpTernaryOp
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 PhpTernaryOp
impl PartialEq for PhpTernaryOp
Source§impl Serialize for PhpTernaryOp
impl Serialize for PhpTernaryOp
impl StructuralPartialEq for PhpTernaryOp
Auto Trait Implementations§
impl Freeze for PhpTernaryOp
impl RefUnwindSafe for PhpTernaryOp
impl Send for PhpTernaryOp
impl Sync for PhpTernaryOp
impl Unpin for PhpTernaryOp
impl UnwindSafe for PhpTernaryOp
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