struct DiskOptionWithId {
disk_option: DiskOption,
index: usize,
}Expand description
Structure containing the parameters for a single disk as well as a unique counter increasing each time a new disk parameter is parsed.
This allows the letters assigned to each disk to reflect the order of their declaration, as we have several options for specifying disks (rwroot, root, etc) and order can thus be lost when they are aggregated.
Fields§
§disk_option: DiskOption§index: usizeTrait Implementations§
Source§impl Clone for DiskOptionWithId
impl Clone for DiskOptionWithId
Source§fn clone(&self) -> DiskOptionWithId
fn clone(&self) -> DiskOptionWithId
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 Debug for DiskOptionWithId
impl Debug for DiskOptionWithId
Source§impl From<DiskOption> for DiskOptionWithId
Assign the next id to disk_option.
impl From<DiskOption> for DiskOptionWithId
Assign the next id to disk_option.
Source§fn from(disk_option: DiskOption) -> Self
fn from(disk_option: DiskOption) -> Self
Converts to this type from the input type.
Source§impl From<DiskOptionWithId> for DiskOption
impl From<DiskOptionWithId> for DiskOption
Source§fn from(disk_option_with_id: DiskOptionWithId) -> Self
fn from(disk_option_with_id: DiskOptionWithId) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DiskOptionWithId
impl RefUnwindSafe for DiskOptionWithId
impl Send for DiskOptionWithId
impl Sync for DiskOptionWithId
impl Unpin for DiskOptionWithId
impl UnwindSafe for DiskOptionWithId
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> FromArgValue for T
impl<T> FromArgValue for T
§fn from_arg_value(value: &str) -> Result<T, String>
fn from_arg_value(value: &str) -> Result<T, String>
Construct the type from a commandline value, returning an error string
on failure.