Struct devicemapper::ThinDevId
[−]
[src]
pub struct ThinDevId { /* fields omitted */ }A thindev id is a 24 bit number, i.e., its bit width is not a power of 2.
Methods
impl ThinDevId[src]
fn new_u64(value: u64) -> DmResult<ThinDevId>[src]
Make a new ThinDevId. Return an error if value is too large to represent in 24 bits.
Trait Implementations
impl Debug for ThinDevId[src]
impl Clone for ThinDevId[src]
fn clone(&self) -> ThinDevId[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Copy for ThinDevId[src]
impl Eq for ThinDevId[src]
impl PartialEq for ThinDevId[src]
fn eq(&self, __arg_0: &ThinDevId) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &ThinDevId) -> bool[src]
This method tests for !=.
impl Hash for ThinDevId[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)[src]
Feeds this value into the given [Hasher]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher]. Read more
impl Display for ThinDevId[src]
fn fmt(&self, f: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more
impl Serialize for ThinDevId[src]
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> where
S: Serializer, [src]
S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl<'de> Deserialize<'de> for ThinDevId[src]
fn deserialize<D>(deserializer: D) -> Result<ThinDevId, D::Error> where
D: Deserializer<'de>, [src]
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more