pub trait ProfileChunk {
// Required methods
fn platform(&self) -> &str;
fn normalize(&mut self) -> Result<(), ProfileError>;
// Provided method
fn profile_type(&self) -> ProfileType { ... }
}Expand description
Minimum interface all profile chunk types must implement.
Required Methods§
Sourcefn normalize(&mut self) -> Result<(), ProfileError>
fn normalize(&mut self) -> Result<(), ProfileError>
Normalizes the profile chunk.
Provided Methods§
Sourcefn profile_type(&self) -> ProfileType
fn profile_type(&self) -> ProfileType
Returns the ProfileType of this profile chunk.
By default this is inferred from the Self::platform.