Skip to main content

ProfileChunk

Trait ProfileChunk 

Source
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§

Source

fn platform(&self) -> &str

Returns the platform this profile chunk is associated with.

Source

fn normalize(&mut self) -> Result<(), ProfileError>

Normalizes the profile chunk.

Provided Methods§

Source

fn profile_type(&self) -> ProfileType

Returns the ProfileType of this profile chunk.

By default this is inferred from the Self::platform.

Implementors§