Struct io_lifetimes::views::FilelikeView
source · [−]pub struct FilelikeView<'filelike, Target: FilelikeViewType> { /* private fields */ }
Expand description
A non-owning view of a resource which dereferences to a &Target
or
&mut Target
. These are returned by AsFilelike::as_filelike_view
.
Implementations
sourceimpl<Target: FilelikeViewType> FilelikeView<'_, Target>
impl<Target: FilelikeViewType> FilelikeView<'_, Target>
sourcepub unsafe fn view_raw(raw: RawFilelike) -> Self
pub unsafe fn view_raw(raw: RawFilelike) -> Self
Construct a temporary Target
from raw and wrap it in a FilelikeView
object.
Safety
raw
must be a valid raw filelike referencing a resource that outlives
the resulting view.
Trait Implementations
sourceimpl<Target: FilelikeViewType> Debug for FilelikeView<'_, Target>
impl<Target: FilelikeViewType> Debug for FilelikeView<'_, Target>
sourceimpl<Target: FilelikeViewType> Deref for FilelikeView<'_, Target>
impl<Target: FilelikeViewType> Deref for FilelikeView<'_, Target>
sourceimpl<Target: FilelikeViewType> Drop for FilelikeView<'_, Target>
impl<Target: FilelikeViewType> Drop for FilelikeView<'_, Target>
Auto Trait Implementations
impl<'filelike, Target> RefUnwindSafe for FilelikeView<'filelike, Target> where
Target: RefUnwindSafe,
impl<'filelike, Target> Send for FilelikeView<'filelike, Target> where
Target: Send,
impl<'filelike, Target> Sync for FilelikeView<'filelike, Target> where
Target: Sync,
impl<'filelike, Target> Unpin for FilelikeView<'filelike, Target> where
Target: Unpin,
impl<'filelike, Target> UnwindSafe for FilelikeView<'filelike, Target> where
Target: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more