[−][src]Struct devicemapper::ThinDevId
A thindev id is a 24 bit number, i.e., its bit width is not a power of 2.
Implementations
impl ThinDevId[src]
pub 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 Clone for ThinDevId[src]
impl Copy for ThinDevId[src]
impl Debug for ThinDevId[src]
impl<'de> Deserialize<'de> for ThinDevId[src]
pub fn deserialize<D>(deserializer: D) -> Result<ThinDevId, D::Error> where
D: Deserializer<'de>, [src]
D: Deserializer<'de>,
impl Display for ThinDevId[src]
impl Eq for ThinDevId[src]
impl From<ThinDevId> for u32[src]
impl FromStr for ThinDevId[src]
type Err = DmError
The associated error which can be returned from parsing.
pub fn from_str(s: &str) -> Result<ThinDevId, DmError>[src]
impl Hash for ThinDevId[src]
pub fn hash<__H: Hasher>(&self, state: &mut __H)[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
impl PartialEq<ThinDevId> for ThinDevId[src]
impl Serialize for ThinDevId[src]
impl StructuralEq for ThinDevId[src]
impl StructuralPartialEq for ThinDevId[src]
Auto Trait Implementations
impl RefUnwindSafe for ThinDevId[src]
impl Send for ThinDevId[src]
impl Sync for ThinDevId[src]
impl Unpin for ThinDevId[src]
impl UnwindSafe for ThinDevId[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>, [src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T> ToString for T where
T: Display + ?Sized, [src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,