pub struct PropsRegistry { /* private fields */ }
Implementations§
source§impl PropsRegistry
impl PropsRegistry
pub fn register_factory<T>(&mut self, name: &str)
pub fn unregister_factory(&mut self, name: &str)
pub fn serialize(&self, props: &Props) -> Result<PrefabValue, PrefabError>
pub fn deserialize(&self, data: PrefabValue) -> 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 Freeze for PropsRegistry
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