pub fn is_valid(&self) -> bool {
        let mut valid = true;
        if first_box!(&self.boxes, DataInformationBox).is_none() {
            log::error!("MediaInformationBox: no DataInformationBox present");
            valid = false;
        }
        match first_box!(&self.boxes, SampleTableBox) {
            Some(st) => {
                if !st.is_valid() {
                    valid = false;
                }
            },
            None => {
                log::error!("MediaInformationBox: no SampleTableBox present");
                valid = false;
            }
        }
        valid
    }
/// Check if this MediaInformationBox is valid (has data_information and sample_table boxes).
Check if this MediaInformationBox is valid (has data_information and sample_table boxes).
Check if this MediaInformationBox is valid ( has data_information and sample_table boxes ) .
pub fn is_valid(&self) -> bool {
        let mut valid = true;
        if first_box!(&self.boxes, DataInformationBox).is_none() {
            log::error!("MediaInformationBox: no DataInformationBox present");
            valid = false;
        }
        match first_box!(&self.boxes, SampleTableBox) {
            Some(st) => {
                if !st.is_valid() {
                    valid = false;
                }
            },
            None => {
                log::error!("MediaInformationBox: no SampleTableBox present");
                valid = false;
            }
        }
        valid
    }
pub fn is_valid ( & self ) -> bool { let mut valid = true ; if first_box ! ( self boxes DataInformationBox ) . is_none ( ) { log :: error ! ( " " ) ; valid = false ; } match first_box ! ( self boxes SampleTableBox ) { Some ( st ) => { if ! st . is_valid ( ) { valid = false ; } } , None => { log :: error ! ( " " ) ; valid = false ; } } valid }
Check if this MediaInformationBox is valid (has data_information and sample_table boxes).
Check if this MediaInformationBox is valid ( has data_information and sample_table boxes ) .
&self
&self