pub struct UnityClassRegistry { /* private fields */ }
Expand description
Registry for Unity class types
Implementations§
Source§impl UnityClassRegistry
impl UnityClassRegistry
Sourcepub fn new() -> UnityClassRegistry
pub fn new() -> UnityClassRegistry
Create a new registry
Sourcepub fn register_class<F>(
&mut self,
class_id: i32,
class_name: &str,
_constructor: F,
)
pub fn register_class<F>( &mut self, class_id: i32, class_name: &str, _constructor: F, )
Register a class type
Sourcepub fn get_or_create_class(
&self,
class_id: i32,
class_name: &str,
anchor: String,
) -> UnityClass
pub fn get_or_create_class( &self, class_id: i32, class_name: &str, anchor: String, ) -> UnityClass
Get or create a class instance
Trait Implementations§
Source§impl Debug for UnityClassRegistry
impl Debug for UnityClassRegistry
Source§impl Default for UnityClassRegistry
impl Default for UnityClassRegistry
Source§fn default() -> UnityClassRegistry
fn default() -> UnityClassRegistry
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for UnityClassRegistry
impl RefUnwindSafe for UnityClassRegistry
impl Send for UnityClassRegistry
impl Sync for UnityClassRegistry
impl Unpin for UnityClassRegistry
impl UnwindSafe for UnityClassRegistry
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<F, T> IntoSample<T> for Fwhere
T: FromSample<F>,
impl<F, T> IntoSample<T> for Fwhere
T: FromSample<F>,
fn into_sample(self) -> T
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian()
.