Struct hwlocality::errors::ParameterError
source · pub struct ParameterError<Parameter: Debug>(pub Parameter);
Expand description
A method was passed an invalid parameter
This generic error type is only used when there is only a single way a function parameter can be invalid, and the fact that it is invalid does not depend on the value of another parameter. Otherwise, a more descriptive dedicated error type will be used.
Tuple Fields§
§0: Parameter
Trait Implementations§
source§impl<Parameter: Clone + Debug> Clone for ParameterError<Parameter>
impl<Parameter: Clone + Debug> Clone for ParameterError<Parameter>
source§fn clone(&self) -> ParameterError<Parameter>
fn clone(&self) -> ParameterError<Parameter>
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<Parameter: Default + Debug> Default for ParameterError<Parameter>
impl<Parameter: Default + Debug> Default for ParameterError<Parameter>
source§fn default() -> ParameterError<Parameter>
fn default() -> ParameterError<Parameter>
Returns the “default value” for a type. Read more
source§impl<Parameter> Display for ParameterError<Parameter>
impl<Parameter> Display for ParameterError<Parameter>
source§impl<Parameter: Debug> Error for ParameterError<Parameter>
impl<Parameter: Debug> Error for ParameterError<Parameter>
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl<Parameter: Debug> From<Parameter> for ParameterError<Parameter>
impl<Parameter: Debug> From<Parameter> for ParameterError<Parameter>
source§impl From<ParameterError<CpuBindingFlags>> for CpuBindingError
impl From<ParameterError<CpuBindingFlags>> for CpuBindingError
source§fn from(source: FlagsError<CpuBindingFlags>) -> Self
fn from(source: FlagsError<CpuBindingFlags>) -> Self
Converts to this type from the input type.
source§impl From<ParameterError<DistancesKind>> for AddDistancesError
impl From<ParameterError<DistancesKind>> for AddDistancesError
source§fn from(source: FlagsError<DistancesKind>) -> Self
fn from(source: FlagsError<DistancesKind>) -> Self
Converts to this type from the input type.
source§impl From<ParameterError<MemoryAttributeFlags>> for RegisterError
Available on crate feature hwloc-2_3_0
only.
impl From<ParameterError<MemoryAttributeFlags>> for RegisterError
Available on crate feature
hwloc-2_3_0
only.source§fn from(source: FlagsError<MemoryAttributeFlags>) -> Self
fn from(source: FlagsError<MemoryAttributeFlags>) -> Self
Converts to this type from the input type.
source§impl<Parameter: Ord + Debug> Ord for ParameterError<Parameter>
impl<Parameter: Ord + Debug> Ord for ParameterError<Parameter>
source§fn cmp(&self, other: &ParameterError<Parameter>) -> Ordering
fn cmp(&self, other: &ParameterError<Parameter>) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl<Parameter: PartialOrd + Debug> PartialOrd for ParameterError<Parameter>
impl<Parameter: PartialOrd + Debug> PartialOrd for ParameterError<Parameter>
impl<Parameter: Copy + Debug> Copy for ParameterError<Parameter>
impl<Parameter: Eq + Debug> Eq for ParameterError<Parameter>
impl<Parameter: Debug> StructuralPartialEq for ParameterError<Parameter>
Auto Trait Implementations§
impl<Parameter> Freeze for ParameterError<Parameter>where
Parameter: Freeze,
impl<Parameter> RefUnwindSafe for ParameterError<Parameter>where
Parameter: RefUnwindSafe,
impl<Parameter> Send for ParameterError<Parameter>where
Parameter: Send,
impl<Parameter> Sync for ParameterError<Parameter>where
Parameter: Sync,
impl<Parameter> Unpin for ParameterError<Parameter>where
Parameter: Unpin,
impl<Parameter> UnwindSafe for ParameterError<Parameter>where
Parameter: 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)