pub struct CountedLegacyFileRef(/* private fields */);Expand description
Represents a counted reference to a legacy file object. Will decrement the legacy file’s ref count when dropped.
Implementations§
Source§impl CountedLegacyFileRef
 
impl CountedLegacyFileRef
Sourcepub fn new(ptr: HostTreePointer<LegacyFile>) -> Self
 
pub fn new(ptr: HostTreePointer<LegacyFile>) -> Self
Does not increment the legacy file’s ref count, but will decrement the ref count when dropped.
Sourcepub unsafe fn ptr(&self) -> *mut LegacyFile
 
pub unsafe fn ptr(&self) -> *mut LegacyFile
§Safety
See HostTreePointer::ptr.
Trait Implementations§
Source§impl Clone for CountedLegacyFileRef
 
impl Clone for CountedLegacyFileRef
Source§impl Debug for CountedLegacyFileRef
 
impl Debug for CountedLegacyFileRef
Auto Trait Implementations§
impl Freeze for CountedLegacyFileRef
impl RefUnwindSafe for CountedLegacyFileRef
impl Send for CountedLegacyFileRef
impl Sync for CountedLegacyFileRef
impl Unpin for CountedLegacyFileRef
impl UnwindSafe for CountedLegacyFileRef
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> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
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 more