/// Read a single-frame XYZ file.
Read a single-frame XYZ file.
Read a single - frame XYZ file .
pub fn from_buf_reader(r: impl BufRead) -> FailResult<Self> {
        let mut frames = Self::anim_from_buf_reader(r)?;
        match frames.len() {
            0 => bail!("XYZ file is empty!"),
            1 => Ok(frames.remove(0)),
            _ => {
                warn!("\
                    An animation was supplied where a single-frame XYZ file was expected! \
                    Only the first frame will be used.\
                ");
                Ok(frames.remove(0))
            },
        }
    }
pub fn from_buf_reader ( r : impl BufRead ) -> FailResult < Self > { let mut frames = Self :: anim_from_buf_reader ( r ) ? ; match frames . len ( ) { 0 => bail ! ( " " ) , 1 => Ok ( frames . remove ( 0 ) ) , _ => { warn ! ( " \
 \
 \
 " ) ; Ok ( frames . remove ( 0 ) ) } , } }
Read a single-frame XYZ file.
Read a single - frame XYZ file .
r
impl BufRead