Struct lofty::TaggedFile[][src]

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

A generic representation of a file

This is used when the FileType has to be guessed

Implementations

Returns the primary tag

See FileType::primary_tag_type

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

See FileType::primary_tag_type

Returns the file type’s primary TagType

See FileType::primary_tag_type

Determines whether the file supports the given TagType

Returns all tags

Gets the first tag, if there are any

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

Get a reference to a specific TagType

Get a mutable reference to a specific TagType

Inserts a Tag

If a tag is replaced, it will be returned

Removes a specific TagType

This will return the tag if it is removed

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.

Returns the file’s FileType

Returns a reference to the file’s FileProperties

Trait Implementations

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

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

Performs the conversion.

Performs the conversion.

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.