pub struct PhpCase {
pub value: Option<Box<PhpExpression>>,
pub statements: Vec<PhpStatement>,
}Expand description
PHP case statement.
Fields§
§value: Option<Box<PhpExpression>>Case value (None for the default case).
statements: Vec<PhpStatement>Statements within the case.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PhpCase
impl<'de> Deserialize<'de> for PhpCase
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
impl StructuralPartialEq for PhpCase
Auto Trait Implementations§
impl Freeze for PhpCase
impl RefUnwindSafe for PhpCase
impl Send for PhpCase
impl Sync for PhpCase
impl Unpin for PhpCase
impl UnsafeUnpin for PhpCase
impl UnwindSafe for PhpCase
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