pub struct StorageFileRef(pub Rc<dyn IStorageFile>);Expand description
A file of a storage provider (IStorageFile).
Tuple Fields§
§0: Rc<dyn IStorageFile>Implementations§
Source§impl StorageFileRef
impl StorageFileRef
Sourcepub fn new(value: Rc<dyn IStorageFile>) -> Self
pub fn new(value: Rc<dyn IStorageFile>) -> Self
The handle of value.
Sourcepub fn get(&self) -> &Rc<dyn IStorageFile>
pub fn get(&self) -> &Rc<dyn IStorageFile>
The shared object.
Trait Implementations§
Source§impl Clone for StorageFileRef
impl Clone for StorageFileRef
Source§impl Debug for StorageFileRef
impl Debug for StorageFileRef
Source§impl Deref for StorageFileRef
impl Deref for StorageFileRef
Source§type Target = dyn IStorageFile
type Target = dyn IStorageFile
The resulting type after dereferencing.
Source§fn deref(&self) -> &(dyn IStorageFile + 'static)
fn deref(&self) -> &(dyn IStorageFile + 'static)
Dereferences the value.
Source§impl From<Rc<dyn IStorageFile>> for StorageFileRef
impl From<Rc<dyn IStorageFile>> for StorageFileRef
Source§fn from(value: Rc<dyn IStorageFile>) -> Self
fn from(value: Rc<dyn IStorageFile>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for StorageFileRef
impl !Send for StorageFileRef
impl !Sync for StorageFileRef
impl !UnwindSafe for StorageFileRef
impl Freeze for StorageFileRef
impl Unpin for StorageFileRef
impl UnsafeUnpin for StorageFileRef
Blanket Implementations§
Source§impl<T> AnyValue for Twhere
T: PartialEq + 'static,
impl<T> AnyValue for Twhere
T: PartialEq + 'static,
fn any_value_as_any(&self) -> &(dyn Any + 'static)
fn any_value_eq(&self, other: &(dyn AnyValue + 'static)) -> bool
fn any_value_type_name(&self) -> &'static str
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> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more