[−][src]Trait unsafe_io::AsUnsafeFile
A trait for types which contain an unsafe file and can expose it.
Required methods
pub fn as_unsafe_file(&self) -> UnsafeFile
[src]
Return the contained unsafe file.
Provided methods
pub fn as_file_view(&self) -> View<'_, File>
[src]
Utility for returning a value which dereferences to a &File
or
&mut File
.
Note that AsUnsafeFile
may be implemented for types which are not
normal files, and which don't support all the methods on File
.
pub unsafe fn as_unscoped_file_view(&self) -> View<'static, File>
[src]
Like as_file
, but returns a value which is not explicitly tied
to the lifetime of self
.
Safety
Callers must manually ensure that the view doesn't outlive self
.