pub struct Disk(/* private fields */);Implementations§
Source§impl Disk
impl Disk
pub fn get_type_id() -> TypeId
pub fn desc(&self) -> Option<R<DictionaryOf<String, Type>>>
pub fn whole_disk(&self) -> Option<R<Disk>>
pub fn from_bsd_name_in( session: &Session, name: &CStr, alloc: Option<&Allocator>, ) -> Option<R<Self>>
pub fn from_volume_path_in( session: &Session, path: &Url, alloc: Option<&Allocator>, ) -> Option<R<Self>>
pub fn from_bsd_name(session: &Session, name: &CStr) -> Option<R<Self>>
pub fn from_volume_path(session: &Session, path: &Url) -> Option<R<Self>>
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§
Auto Trait Implementations§
impl !Send for Disk
impl !Sync for Disk
impl Freeze for Disk
impl RefUnwindSafe for Disk
impl Unpin for Disk
impl UnsafeUnpin for Disk
impl UnwindSafe for Disk
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