pub struct CausalMultiVectorError { /* private fields */ }Expand description
The main error type for CausalMultiVector operations.
This struct wraps CausalMultiVectorErrorInner to provide a stable API while allowing internal evolution.
Implementations§
Source§impl CausalMultiVectorError
impl CausalMultiVectorError
Sourcepub fn dimension_mismatch(expected: usize, found: usize) -> Self
pub fn dimension_mismatch(expected: usize, found: usize) -> Self
Creates a DimensionMismatch error.
Sourcepub fn data_length_mismatch(expected: usize, found: usize) -> Self
pub fn data_length_mismatch(expected: usize, found: usize) -> Self
Creates a DataLengthMismatch error.
Sourcepub fn zero_magnitude() -> Self
pub fn zero_magnitude() -> Self
Creates a ZeroMagnitude error.
Sourcepub fn metric_mismatch(left: Metric, right: Metric) -> Self
pub fn metric_mismatch(left: Metric, right: Metric) -> Self
Creates a MetricMismatch error.
Trait Implementations§
Source§impl Debug for CausalMultiVectorError
impl Debug for CausalMultiVectorError
Source§impl Display for CausalMultiVectorError
impl Display for CausalMultiVectorError
Source§impl Error for CausalMultiVectorError
impl Error for CausalMultiVectorError
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 PartialEq for CausalMultiVectorError
impl PartialEq for CausalMultiVectorError
impl StructuralPartialEq for CausalMultiVectorError
Auto Trait Implementations§
impl Freeze for CausalMultiVectorError
impl RefUnwindSafe for CausalMultiVectorError
impl Send for CausalMultiVectorError
impl Sync for CausalMultiVectorError
impl Unpin for CausalMultiVectorError
impl UnwindSafe for CausalMultiVectorError
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