pub struct TaggedFile { /* private fields */ }
Expand description

A generic representation of a file

This is used when the FileType has to be guessed

Implementations

Returns the file’s FileType

Returns all tags

Returns the file type’s primary TagType

See FileType::primary_tag_type

Determines whether the file supports the given TagType

Get a reference to a specific TagType

Get a mutable reference to a specific TagType

Returns the primary tag

See FileType::primary_tag_type

Gets a mutable reference to the file’s “Primary tag”

See FileType::primary_tag_type

Gets the first tag, if there are any

Gets a mutable reference to the first tag, if there are any

Inserts a Tag

NOTE: This will do nothing if the FileType does not support the TagType. See FileType::supports_tag_type

If a tag is replaced, it will be returned

Removes a specific TagType and returns it

Changes the FileType

NOTES:

Removes all tags from the file

Attempts to write all tags to a path

Errors

See TaggedFile::save_to

Attempts to write all tags to a file

Errors

See Tag::save_to, however this is applicable to every tag in the TaggedFile.

Trait Implementations

The struct the file uses for audio properties Read more

Read a file from a reader Read more

Returns a reference to the file’s properties

Checks if the file contains any tags

Checks if the file contains the given TagType

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

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 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.