pub fn is_valid(&self) -> bool {
        let mut valid = true;
        match first_box!(&self.boxes, MovieBox) {
            Some(m) => {
                if !m.is_valid() {
                    valid = false;
                }
            },
            None => {
                log::error!("no MovieBox present");
                valid = false;
            },
        }
        valid
    }
/// Check if the structure of the file is valid and contains all
/// the primary boxes.
Check if the structure of the file is valid and contains all
the primary boxes.
Check if the structure of the file is valid and contains all the primary boxes .
pub fn is_valid(&self) -> bool {
        let mut valid = true;
        match first_box!(&self.boxes, MovieBox) {
            Some(m) => {
                if !m.is_valid() {
                    valid = false;
                }
            },
            None => {
                log::error!("no MovieBox present");
                valid = false;
            },
        }
        valid
    }
pub fn is_valid ( & self ) -> bool { let mut valid = true ; match first_box ! ( self boxes MovieBox ) { Some ( m ) => { if ! m . is_valid ( ) { valid = false ; } } , None => { log :: error ! ( " " ) ; valid = false ; } , } valid }
Check if the structure of the file is valid and contains all
the primary boxes.
Check if the structure of the file is valid and contains all the primary boxes .
&self
&self