pub struct TrustedApp(/* private fields */);Implementations§
Methods from Deref<Target = Type>§
pub fn get_type_id(&self) -> TypeId
pub unsafe fn as_type_ptr(&self) -> *const c_void
pub fn as_type_ref(&self) -> &Type
pub fn is_tagged_ptr(&self) -> bool
pub fn try_as_number(&self) -> Option<&Number>
pub fn try_as_string(&self) -> Option<&String>
pub fn show(&self)
pub fn allocator(&self) -> Option<&Allocator>
pub fn retain_count(&self) -> isize
Sourcepub fn equal(&self, other: &Type) -> bool
pub fn equal(&self, other: &Type) -> bool
use cidre::cf;
let n1 = cf::Number::from_i8(4);
let n2 = cf::Number::from_i32(4);
let n3 = cf::Number::from_f64(3.0);
assert!(n1.equal(&n2));
assert_eq!(false, n1.equal(&n3));pub fn hash(&self) -> usize
pub fn desc(&self) -> R<String>
Trait Implementations§
Source§impl AsRef<Type> for TrustedApp
impl AsRef<Type> for TrustedApp
Source§impl Debug for TrustedApp
impl Debug for TrustedApp
Source§impl Deref for TrustedApp
impl Deref for TrustedApp
Source§impl DerefMut for TrustedApp
impl DerefMut for TrustedApp
Auto Trait Implementations§
impl !Send for TrustedApp
impl !Sync for TrustedApp
impl Freeze for TrustedApp
impl RefUnwindSafe for TrustedApp
impl Unpin for TrustedApp
impl UnsafeUnpin for TrustedApp
impl UnwindSafe for TrustedApp
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