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 duplicate 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>
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