pub struct FlacHeader {
pub blocks: Vec<MetadataBlock>,
pub path: PathBuf,
/* private fields */
}Fields§
§blocks: Vec<MetadataBlock>§path: PathBufImplementations§
Source§impl FlacHeader
impl FlacHeader
pub fn parse<R: Read>(reader: &mut R, path: PathBuf) -> Result<FlacHeader>
pub fn from_file<P: AsRef<Path>>(filename: P) -> Result<FlacHeader>
pub fn stream_info(&self) -> &BlockStreamInfo
pub fn comments(&self) -> Option<&BlockVorbisComment>
Sourcepub fn comments_mut(&mut self) -> &mut BlockVorbisComment
pub fn comments_mut(&mut self) -> &mut BlockVorbisComment
Get a mutable comments blocks for edit
If VorbisComment block does not exist, a new block would be appended to header.
pub fn save<P: AsRef<Path>>(&mut self, output: Option<P>) -> Result<()>
pub fn format(&mut self)
Auto Trait Implementations§
impl Freeze for FlacHeader
impl RefUnwindSafe for FlacHeader
impl Send for FlacHeader
impl Sync for FlacHeader
impl Unpin for FlacHeader
impl UnwindSafe for FlacHeader
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more