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§
source§impl<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§
source§impl<T: Clone + TargetParams> Clone for TargetLine<T>
impl<T: Clone + TargetParams> Clone for TargetLine<T>
source§fn clone(&self) -> TargetLine<T>
fn clone(&self) -> TargetLine<T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl<T: Debug + TargetParams> Debug for TargetLine<T>
impl<T: Debug + TargetParams> Debug for TargetLine<T>
source§impl<T: PartialEq + TargetParams> PartialEq for TargetLine<T>
impl<T: PartialEq + TargetParams> PartialEq for TargetLine<T>
source§fn 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 ==.impl<T: Eq + TargetParams> Eq for TargetLine<T>
impl<T: TargetParams> StructuralPartialEq for TargetLine<T>
Auto Trait Implementations§
impl<T> Freeze for TargetLine<T>where
T: Freeze,
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more