[][src]Struct flac_sys::FLAC__Metadata_Chain

#[repr(C)]pub struct FLAC__Metadata_Chain { /* fields omitted */ }

\defgroup flac_metadata_level2 FLAC/metadata.h: metadata level 2 interface \ingroup flac_metadata

\brief The level 2 interface provides read-write access to FLAC file metadata; all metadata is read into memory, operated on in memory, and then written to file, which is more efficient than level 1 when editing multiple blocks.

Currently Ogg FLAC is supported for read only, via FLAC__metadata_chain_read_ogg() but a subsequent FLAC__metadata_chain_write() will fail.

The general usage of this interface is:

\note Even though the FLAC file is not open while the chain is being manipulated, you must not alter the file externally during this time. The chain assumes the FLAC file will not change between the time of FLAC__metadata_chain_read()/FLAC__metadata_chain_read_ogg() and FLAC__metadata_chain_write().

\note Do not modify the is_last, length, or type fields of returned FLAC__StreamMetadata objects. These are managed automatically.

\note The metadata objects returned by FLAC__metadata_iterator_get_block() are owned by the chain; do not FLAC__metadata_object_delete() them. In the same way, blocks passed to FLAC__metadata_iterator_set_block() become owned by the chain and they will be deleted when the chain is deleted.

{

Trait Implementations

impl Clone for FLAC__Metadata_Chain[src]

impl Copy for FLAC__Metadata_Chain[src]

impl Debug for FLAC__Metadata_Chain[src]

Auto Trait Implementations

impl RefUnwindSafe for FLAC__Metadata_Chain

impl Send for FLAC__Metadata_Chain

impl Sync for FLAC__Metadata_Chain

impl Unpin for FLAC__Metadata_Chain

impl UnwindSafe for FLAC__Metadata_Chain

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.