pub trait FileInfoExt {
// Required methods
fn get_width_min(&self) -> Option<u64>;
fn get_max_size(&self) -> Option<u64>;
fn get_max_number(&self) -> Option<usize>;
fn get_max_dimension(&self) -> Option<u64>;
fn sizes_are_valid(&self, config: &Config) -> bool;
fn update_number(&mut self);
fn update_hash(&mut self) -> WallSwitchResult<()>;
}Expand description
FileInfo Extension
Required Methods§
fn get_width_min(&self) -> Option<u64>
fn get_max_size(&self) -> Option<u64>
fn get_max_number(&self) -> Option<usize>
fn get_max_dimension(&self) -> Option<u64>
fn sizes_are_valid(&self, config: &Config) -> bool
fn update_number(&mut self)
fn update_hash(&mut self) -> WallSwitchResult<()>
Implementations on Foreign Types§
Source§impl FileInfoExt for [FileInfo]
impl FileInfoExt for [FileInfo]
Source§fn update_number(&mut self)
fn update_number(&mut self)
Update FileInfo number field
Source§fn update_hash(&mut self) -> WallSwitchResult<()>
fn update_hash(&mut self) -> WallSwitchResult<()>
Update FileInfo hash field