pub struct ScriptEnumVariant<'a> {
pub meta: Option<Meta>,
pub name: String,
pub fields: Vec<ScriptStructField<'a>>,
pub discriminant: Option<u8>,
}
Fields§
§meta: Option<Meta>
§name: String
§fields: Vec<ScriptStructField<'a>>
§discriminant: Option<u8>
Implementations§
Source§impl<'a> ScriptEnumVariant<'a>
impl<'a> ScriptEnumVariant<'a>
pub fn build(&self, registry: &Registry) -> EnumVariant
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for ScriptEnumVariant<'a>
impl<'a> RefUnwindSafe for ScriptEnumVariant<'a>
impl<'a> Send for ScriptEnumVariant<'a>
impl<'a> Sync for ScriptEnumVariant<'a>
impl<'a> Unpin for ScriptEnumVariant<'a>
impl<'a> UnwindSafe for ScriptEnumVariant<'a>
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