pub struct UnityClassIdMap { /* private fields */ }
Expand description
Unity class ID to name mapping This is a global registry that maps class IDs to class names
Implementations§
Source§impl UnityClassIdMap
impl UnityClassIdMap
pub fn new() -> UnityClassIdMap
Sourcepub fn get_or_create(&self, class_id: &str, class_name: &str) -> String
pub fn get_or_create(&self, class_id: &str, class_name: &str) -> String
Get or create a class mapping
Sourcepub fn get_class_name(&self, class_id: i32) -> Option<String>
pub fn get_class_name(&self, class_id: i32) -> Option<String>
Get class name from class ID
Trait Implementations§
Source§impl Default for UnityClassIdMap
impl Default for UnityClassIdMap
Source§fn default() -> UnityClassIdMap
fn default() -> UnityClassIdMap
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for UnityClassIdMap
impl RefUnwindSafe for UnityClassIdMap
impl Send for UnityClassIdMap
impl Sync for UnityClassIdMap
impl Unpin for UnityClassIdMap
impl UnwindSafe for UnityClassIdMap
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()
.