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.