pub struct FilelikeView<'filelike, Target: FromFilelike + IntoFilelike> { /* 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

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

Formats the value using the given formatter. Read more

The resulting type after dereferencing.

Dereferences the value.

Mutably dereferences the value.

Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.