Trait base::file_traits::FileGetLen  
source · pub trait FileGetLen {
    // Required method
    fn get_len(&self) -> Result<u64>;
}Expand description
A trait for getting the size of a file. This is equivalent to File’s metadata().len() method, but wrapped in a trait so that it can be implemented for other types.