pub struct PHPEnum {
pub name: String,
pub backing_type: Option<PHPType>,
pub cases: Vec<PHPEnumCase>,
pub implements: Vec<String>,
pub methods: Vec<PHPFunction>,
}Expand description
PHP 8.1 enum declaration.
Fields§
§name: StringEnum name
backing_type: Option<PHPType>Backing type (int or string), None for pure enums
cases: Vec<PHPEnumCase>Cases
implements: Vec<String>Implemented interfaces
methods: Vec<PHPFunction>Methods
Implementations§
Trait Implementations§
impl StructuralPartialEq for PHPEnum
Auto Trait Implementations§
impl Freeze for PHPEnum
impl RefUnwindSafe for PHPEnum
impl Send for PHPEnum
impl Sync for PHPEnum
impl Unpin for PHPEnum
impl UnsafeUnpin for PHPEnum
impl UnwindSafe for PHPEnum
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