pub struct ScriptStruct<'a> {
pub meta: Option<Meta>,
pub name: String,
pub module_name: Option<String>,
pub visibility: Visibility,
pub fields: Vec<ScriptStructField<'a>>,
}Expand description
A struct a frontend produced.
Installing takes two passes, ScriptStruct::declare then
ScriptStruct::define, so that types can refer to each other.
Fields§
§meta: Option<Meta>Metadata attached to this type.
name: StringName to register the type under.
module_name: Option<String>Module the type belongs to.
visibility: VisibilityHow widely the type is visible.
fields: Vec<ScriptStructField<'a>>Fields, in declaration order.
Implementations§
Source§impl ScriptStruct<'_>
impl ScriptStruct<'_>
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for ScriptStruct<'a>
impl<'a> RefUnwindSafe for ScriptStruct<'a>
impl<'a> Send for ScriptStruct<'a>
impl<'a> Sync for ScriptStruct<'a>
impl<'a> Unpin for ScriptStruct<'a>
impl<'a> UnsafeUnpin for ScriptStruct<'a>
impl<'a> UnwindSafe for ScriptStruct<'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