Struct devicemapper::Sectors[]

pub struct Sectors(pub u64);

A separate type to store counts and offsets expressed in 512-byte sectors.

Methods

impl Sectors
[src]

The number of bytes in these sectors.

The number of whole metablocks contained in these sectors.

Add two items of type $T, return None if overflow.

Methods from Deref<Target = u64>

Trait Implementations

impl Clone for Sectors

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Sectors

impl Debug for Sectors

Formats the value using the given formatter. Read more

impl Default for Sectors

Returns the "default value" for a type. Read more

impl Eq for Sectors

impl Ord for Sectors

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

impl PartialEq for Sectors

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl PartialOrd for Sectors

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Add<Sectors> for Sectors

The resulting type after applying the + operator.

Performs the + operation.

impl AddAssign<Sectors> for Sectors

Performs the += operation.

impl Deref for Sectors

The resulting type after dereferencing.

Dereferences the value.

impl From<u64> for Sectors

Performs the conversion.

impl From<Sectors> for u64

Performs the conversion.

impl Sub<Sectors> for Sectors

The resulting type after applying the - operator.

Performs the - operation.

impl SubAssign<Sectors> for Sectors

Performs the -= operation.

impl Div<Sectors> for Sectors
[src]

The resulting type after applying the / operator.

Performs the / operation.

impl Serialize for Sectors
[src]

Serialize this value into the given Serde serializer. Read more

impl<'de> Deserialize<'de> for Sectors
[src]

Deserialize this value from the given Serde deserializer. Read more

impl Sum for Sectors
[src]

Method which takes an iterator and generates Self from the elements by "summing up" the items. Read more

impl Div<u64> for Sectors
[src]

The resulting type after applying the / operator.

Performs the / operation.

impl Div<u32> for Sectors
[src]

The resulting type after applying the / operator.

Performs the / operation.

impl Div<u16> for Sectors
[src]

The resulting type after applying the / operator.

Performs the / operation.

impl Div<u8> for Sectors
[src]

The resulting type after applying the / operator.

Performs the / operation.

impl Div<usize> for Sectors
[src]

The resulting type after applying the / operator.

Performs the / operation.

impl Mul<u64> for Sectors
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl Mul<Sectors> for u64
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl Mul<u32> for Sectors
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl Mul<Sectors> for u32
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl Mul<u16> for Sectors
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl Mul<Sectors> for u16
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl Mul<u8> for Sectors
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl Mul<Sectors> for u8
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl Mul<usize> for Sectors
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl Mul<Sectors> for usize
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl Rem<u64> for Sectors
[src]

The resulting type after applying the % operator.

Performs the % operation.

impl Rem<u32> for Sectors
[src]

The resulting type after applying the % operator.

Performs the % operation.

impl Rem<u16> for Sectors
[src]

The resulting type after applying the % operator.

Performs the % operation.

impl Rem<u8> for Sectors
[src]

The resulting type after applying the % operator.

Performs the % operation.

impl Rem<usize> for Sectors
[src]

The resulting type after applying the % operator.

Performs the % operation.

impl Display for Sectors
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Sectors

impl Sync for Sectors