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<TargetLine<T>> for TargetLine<T>
impl<T: PartialEq + TargetParams> PartialEq<TargetLine<T>> 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 ==.