pub trait FileData {
type Source: AsRef<str> + PartialEq + ?Sized;
type Name: Display + Debug + PartialEq + ?Sized;
// Required methods
fn source(&self) -> &Self::Source;
fn name(&self) -> &Self::Name;
}Expand description
A trait that represents file data
Required Associated Types§
type Source: AsRef<str> + PartialEq + ?Sized
type Name: Display + Debug + PartialEq + ?Sized
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".