Struct oxygengine_user_interface::raui::core::props::PropsRegistry
source · [−]pub struct PropsRegistry { /* private fields */ }
Implementations
sourceimpl 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
sourceimpl Default for PropsRegistry
impl Default for PropsRegistry
sourcefn 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more