#[non_exhaustive]
pub struct ParseOptions { /* private fields */ }
Expand description

Options to control how Lofty parses a file

Implementations

Creates a new ParseOptions, alias for Default implementation

See also: ParseOptions::default

Examples
use lofty::ParseOptions;

let parsing_options = ParseOptions::new();

Whether or not to read the audio properties

Examples
use lofty::ParseOptions;

// By default, `read_properties` is enabled. Here, we don't want to read them.
let parsing_options = ParseOptions::new().read_properties(false);

Whether or not to check registered custom resolvers

See also: crate::resolve

Examples
use lofty::ParseOptions;

// By default, `use_custom_resolvers` is enabled. Here, we don't want to use them.
let parsing_options = ParseOptions::new().use_custom_resolvers(false);

The parsing mode to use, see ParsingMode for details

Examples
use lofty::{ParseOptions, ParsingMode};

// By default, `parsing_mode` is ParsingMode::Strict. Here, we don't need absolute correctness.
let parsing_options = ParseOptions::new().parsing_mode(ParsingMode::Relaxed);

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more

The default implementation for ParseOptions

The defaults are as follows:

ParseOptions {
	read_properties: true,
	use_custom_resolvers: true,
	parsing_mode: ParsingMode::Strict,
}

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 resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
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.