Struct oxygengine_user_interface::raui::core::props::PropsRegistry
source · pub struct PropsRegistry { /* private fields */ }
Implementations§
source§impl PropsRegistry
impl PropsRegistry
pub fn register_factory<T>(&mut self, name: &str)where T: 'static + Prefab + PropsData,
pub fn unregister_factory(&mut self, name: &str)
pub fn serialize(&self, props: &Props) -> Result<Value, PrefabError>
pub fn deserialize(&self, data: Value) -> Result<Props, PrefabError>
Trait Implementations§
source§impl Default for PropsRegistry
impl Default for PropsRegistry
source§fn default() -> PropsRegistry
fn default() -> PropsRegistry
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for PropsRegistry
impl Send for PropsRegistry
impl Sync for PropsRegistry
impl Unpin for PropsRegistry
impl !UnwindSafe for PropsRegistry
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
§impl<T> Initialize for Twhere
T: Default,
impl<T> Initialize for Twhere T: Default,
fn initialize(&mut self)
§unsafe fn initialize_raw(data: *mut ())
unsafe fn initialize_raw(data: *mut ())
Safety Read more