Struct gull::prelude::TSimpleEnum
source · pub struct TSimpleEnum {
pub variants: Vec<&'static str>,
}
Expand description
This enum is an enum that has NO data associated with its variants. Basically like a C-like enum, where enum values are strings. It will serialize in a single string value (instead of the object/string stuff that we get with full featured enums). This easily maps to hack enums and flow string union types.
Fields§
§variants: Vec<&'static str>
Trait Implementations§
source§impl Clone for TSimpleEnum
impl Clone for TSimpleEnum
source§fn clone(&self) -> TSimpleEnum
fn clone(&self) -> TSimpleEnum
Returns a copy 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 moreAuto Trait Implementations§
impl RefUnwindSafe for TSimpleEnum
impl Send for TSimpleEnum
impl Sync for TSimpleEnum
impl Unpin for TSimpleEnum
impl UnwindSafe for TSimpleEnum
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