pub struct Sectors(pub u64);Expand description
A type for sectors
Tuple Fields§
§0: u64Implementations§
Source§impl Sectors
impl Sectors
Sourcepub fn checked_add(&self, other: Sectors) -> Option<Sectors>
pub fn checked_add(&self, other: Sectors) -> Option<Sectors>
Add two items of the same type, return None if overflow.
Source§impl Sectors
impl Sectors
Sourcepub fn metablocks(self) -> MetaBlocks
pub fn metablocks(self) -> MetaBlocks
The number of whole metablocks contained in these sectors.
Trait Implementations§
Source§impl AddAssign for Sectors
impl AddAssign for Sectors
Source§fn add_assign(&mut self, rhs: Sectors)
fn add_assign(&mut self, rhs: Sectors)
Performs the
+= operation. Read moreSource§impl<'de> Deserialize<'de> for Sectors
impl<'de> Deserialize<'de> for Sectors
Source§fn deserialize<D>(deserializer: D) -> Result<Sectors, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Sectors, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Ord for Sectors
impl Ord for Sectors
Source§impl PartialOrd for Sectors
impl PartialOrd for Sectors
Source§impl SubAssign for Sectors
impl SubAssign for Sectors
Source§fn sub_assign(&mut self, rhs: Sectors)
fn sub_assign(&mut self, rhs: Sectors)
Performs the
-= operation. Read moreimpl Copy for Sectors
impl Eq for Sectors
impl StructuralPartialEq for Sectors
Auto Trait Implementations§
impl Freeze for Sectors
impl RefUnwindSafe for Sectors
impl Send for Sectors
impl Sync for Sectors
impl Unpin for Sectors
impl UnsafeUnpin for Sectors
impl UnwindSafe for Sectors
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