pub fn new_by_type(&self, file: Path, _type: Type) -> Tag{
    assert!(file.exists());
    unsafe {
      let filePtr = file.to_c_str().unwrap();
      let file = tag_c::taglib_file_new_type(filePtr, _type as u32);
      assert!(tag_c::taglib_file_is_valid(file) != 0);
      Tag { file : file,
            tag  : tag_c::taglib_file_tag(file),
            properties : tag_c::taglib_file_audioproperties(file)
      }
    }
  }
/// Tag constructor when the file type must be specified. Valid types are MPEG, OggVorbis, FLAC, MPC, OggFlac, WavPack, Speex, TrueAudio, MP4, ASF.
Tag constructor when the file type must be specified.
Tag constructor when the file type must be specified .
pub fn new_by_type(&self, file: Path, _type: Type) -> Tag{
    assert!(file.exists());
    unsafe {
      let filePtr = file.to_c_str().unwrap();
      let file = tag_c::taglib_file_new_type(filePtr, _type as u32);
      assert!(tag_c::taglib_file_is_valid(file) != 0);
      Tag { file : file,
            tag  : tag_c::taglib_file_tag(file),
            properties : tag_c::taglib_file_audioproperties(file)
      }
    }
  }
pub fn new_by_type ( & self , file : Path , _type : Type ) -> Tag { assert ! ( file exists ( ) ) ; unsafe { let filePtr = file . to_c_str ( ) . unwrap ( ) ; let file = tag_c :: taglib_file_new_type ( filePtr , _type as u32 ) ; assert ! ( tag_c taglib_file_is_valid ( file ) 0 ) ; Tag { file : file , tag : tag_c :: taglib_file_tag ( file ) , properties : tag_c :: taglib_file_audioproperties ( file ) } } }
Tag constructor when the file type must be specified.
Tag constructor when the file type must be specified .
&self
file
Path
_type
Type
&self
file
Path
_type
Type