pub struct EnumCase {
pub name: &'static str,
pub discriminant: Option<Discriminant>,
pub docs: DocComments,
}Available on crate feature
enum only.Expand description
Represents a case in a PHP enum.
Fields§
§name: &'static strThe identifier of the enum case, e.g. Bar in enum Foo { Bar }.
discriminant: Option<Discriminant>The value of the enum case, which can be an integer or a string.
docs: DocCommentsThe documentation comments for the enum case.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EnumCase
impl RefUnwindSafe for EnumCase
impl Send for EnumCase
impl Sync for EnumCase
impl Unpin for EnumCase
impl UnwindSafe for EnumCase
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