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§
source§impl<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§
source§impl<Target: FilelikeViewType> Debug for FilelikeView<'_, Target>
impl<Target: FilelikeViewType> Debug for FilelikeView<'_, Target>
source§impl<Target: FilelikeViewType> Deref for FilelikeView<'_, Target>
impl<Target: FilelikeViewType> Deref for FilelikeView<'_, Target>
source§impl<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§
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