Struct devicemapper::TargetLine
source · [−]pub struct TargetLine<T: TargetParams> {
pub start: Sectors,
pub length: Sectors,
pub params: T,
}Expand description
One line of a device mapper table.
Fields
start: SectorsThe start of the segment
length: SectorsThe length of the segment
params: TThe target specific parameters
Implementations
sourceimpl<T: TargetParams> TargetLine<T>
impl<T: TargetParams> TargetLine<T>
sourcepub fn new(start: Sectors, length: Sectors, params: T) -> TargetLine<T>
pub fn new(start: Sectors, length: Sectors, params: T) -> TargetLine<T>
Make a new TargetLine struct
Trait Implementations
sourceimpl<T: Clone + TargetParams> Clone for TargetLine<T>
impl<T: Clone + TargetParams> Clone for TargetLine<T>
sourcefn clone(&self) -> TargetLine<T>
fn clone(&self) -> TargetLine<T>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl<T: Debug + TargetParams> Debug for TargetLine<T>
impl<T: Debug + TargetParams> Debug for TargetLine<T>
sourceimpl<T: PartialEq + TargetParams> PartialEq<TargetLine<T>> for TargetLine<T>
impl<T: PartialEq + TargetParams> PartialEq<TargetLine<T>> for TargetLine<T>
sourcefn eq(&self, other: &TargetLine<T>) -> bool
fn eq(&self, other: &TargetLine<T>) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
impl<T: Eq + TargetParams> Eq for TargetLine<T>
impl<T: TargetParams> StructuralEq for TargetLine<T>
impl<T: TargetParams> StructuralPartialEq for TargetLine<T>
Auto Trait Implementations
impl<T> RefUnwindSafe for TargetLine<T> where
T: RefUnwindSafe,
impl<T> Send for TargetLine<T> where
T: Send,
impl<T> Sync for TargetLine<T> where
T: Sync,
impl<T> Unpin for TargetLine<T> where
T: Unpin,
impl<T> UnwindSafe for TargetLine<T> where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more