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]
impl ThinDevIdpub fn new_u64(value: u64) -> DmResult<ThinDevId>[src]
pub fn new_u64(value: u64) -> DmResult<ThinDevId>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 Debug for ThinDevIdfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Clone for ThinDevId[src]
impl Clone for ThinDevIdfn clone(&self) -> ThinDevId[src]
fn clone(&self) -> ThinDevIdReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl Copy for ThinDevId[src]
impl Copy for ThinDevIdimpl Eq for ThinDevId[src]
impl Eq for ThinDevIdimpl PartialEq for ThinDevId[src]
impl PartialEq for ThinDevIdfn eq(&self, other: &ThinDevId) -> bool[src]
fn eq(&self, other: &ThinDevId) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &ThinDevId) -> bool[src]
fn ne(&self, other: &ThinDevId) -> boolThis method tests for !=.
impl Hash for ThinDevId[src]
impl Hash for ThinDevIdfn hash<__H: Hasher>(&self, state: &mut __H)[src]
fn hash<__H: Hasher>(&self, state: &mut __H)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]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, Feeds a slice of this type into the given [Hasher]. Read more
impl From<ThinDevId> for u32[src]
impl From<ThinDevId> for u32impl Display for ThinDevId[src]
impl Display for ThinDevIdfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl FromStr for ThinDevId[src]
impl FromStr for ThinDevIdtype Err = DmError
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<ThinDevId, DmError>[src]
fn from_str(s: &str) -> Result<ThinDevId, DmError>Parses a string s to return a value of this type. Read more
impl Serialize for ThinDevId[src]
impl Serialize for ThinDevIdfn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> where
S: Serializer, [src]
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> where
S: Serializer, Serialize this value into the given Serde serializer. Read more
impl<'de> Deserialize<'de> for ThinDevId[src]
impl<'de> Deserialize<'de> for ThinDevIdfn deserialize<D>(deserializer: D) -> Result<ThinDevId, D::Error> where
D: Deserializer<'de>, [src]
fn deserialize<D>(deserializer: D) -> Result<ThinDevId, D::Error> where
D: Deserializer<'de>, Deserialize this value from the given Serde deserializer. Read more