Enum arci::Error [−][src]
#[non_exhaustive] pub enum Error {}Show variants
InterpolationError(String), CollisionError(String, String), Timeout { timeout: Duration, allowable_total_diff: f64, err: f64, }, LengthMismatch { model: usize, input: usize, }, NoJoint(String), JointNamesMissmatch { partial: Vec<String>, full: Vec<String>, }, TimeoutWithDiff { target: Vec<f64>, current: Vec<f64>, is_reached: Vec<bool>, }, Uninitialized { message: String, }, Connection { message: String, }, Canceled { message: String, }, OutOfLimit { name: String, position: f64, limit: RangeInclusive<f64>, }, Lazy(Arc<Error>), Other(Error),
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
InterpolationError(String)
NoJoint(String)
Show fields
Fields of Uninitialized
message: String
Show fields
Fields of Connection
message: String
Show fields
Fields of Canceled
message: String
Show fields
Fields of OutOfLimit
Other(Error)
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Error
impl !UnwindSafe for Error
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self
The inverse inclusion map: attempts to construct self
from the equivalent element of its
superset. Read more
pub fn is_in_subset(&self) -> bool
pub fn is_in_subset(&self) -> bool
Checks if self
is actually part of its subset T
(and can be converted to it).
pub fn to_subset_unchecked(&self) -> SS
pub fn to_subset_unchecked(&self) -> SS
Use with care! Same as self.to_subset
but without any property checks. Always succeeds.
pub fn from_subset(element: &SS) -> SP
pub fn from_subset(element: &SS) -> SP
The inclusion map: converts self
to the equivalent element of its superset.