pub struct TypeHelper { /* private fields */ }Implementations§
Source§impl TypeHelper
impl TypeHelper
pub fn expando(&self) -> Option<&MagicProperty>
pub fn get_properties(&self) -> &[MagicProperty]
Sourcepub fn find_property(&self, name: &str) -> Option<&MagicProperty>
pub fn find_property(&self, name: &str) -> Option<&MagicProperty>
FindProperty(string name): without regard to case.
pub fn get_helper_for_type(class: &'static ClassType) -> Arc<TypeHelper> ⓘ
Sourcepub fn find_property_info(
class: &'static ClassType,
name: &str,
) -> Result<&'static PropertyInfo, Error>
pub fn find_property_info( class: &'static ClassType, name: &str, ) -> Result<&'static PropertyInfo, Error>
FindProperty(Type type, string name): the declared property with
exactly that name. The original throws when there is none (First()).
Auto Trait Implementations§
impl Freeze for TypeHelper
impl RefUnwindSafe for TypeHelper
impl Send for TypeHelper
impl Sync for TypeHelper
impl Unpin for TypeHelper
impl UnsafeUnpin for TypeHelper
impl UnwindSafe for TypeHelper
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