pub trait FileDeref {
type File;
// Required method
fn as_file(&self) -> &Self::File;
}
Expand description
A helper trait to coerce container types like Arc
into a borrowed file.
Required Associated Types§
Required Methods§
sourcefn as_file(&self) -> &Self::File
fn as_file(&self) -> &Self::File
Borrow this instance as a Self::File