pub struct XP3FileIndexInfo { /* private fields */ }
Expand description
Index info represents file metadatas like name.
Implementations§
Source§impl XP3FileIndexInfo
impl XP3FileIndexInfo
pub fn new( flag: IndexInfoFlag, file_size: u64, saved_file_size: u64, name: String, ) -> Self
pub fn flag(&self) -> IndexInfoFlag
pub fn set_flag(&mut self, flag: IndexInfoFlag)
pub fn file_size(&self) -> u64
pub fn set_file_size(&mut self, file_size: u64)
pub fn saved_file_size(&self) -> u64
pub fn set_saved_file_size(&mut self, saved_file_size: u64)
pub fn name(&self) -> &String
pub fn set_name(&mut self, name: String)
Trait Implementations§
Source§impl Clone for XP3FileIndexInfo
impl Clone for XP3FileIndexInfo
Source§fn clone(&self) -> XP3FileIndexInfo
fn clone(&self) -> XP3FileIndexInfo
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for XP3FileIndexInfo
impl RefUnwindSafe for XP3FileIndexInfo
impl Send for XP3FileIndexInfo
impl Sync for XP3FileIndexInfo
impl Unpin for XP3FileIndexInfo
impl UnwindSafe for XP3FileIndexInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more