Skip to main content

StateValue

Enum StateValue 

Source
pub enum StateValue {
    Number(Scalar),
    Pose(Pose),
}
Expand description

A value of a part’s state: a number or a pose. Serialized as itself — 2.5, {"position": [...], "rotation": [...]}.

Variants§

§

Number(Scalar)

§

Pose(Pose)

Trait Implementations§

Source§

impl Clone for StateValue

Source§

fn clone(&self) -> StateValue

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for StateValue

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for StateValue

A value the run gives none of reads as the number zero.

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for StateValue

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl PartialEq for StateValue

Source§

fn eq(&self, other: &StateValue) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for StateValue

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for StateValue

Source§

impl Variable for StateValue

A number steps by what is added to it; a pose by a twist (ω, v) in its own frame — turning about its own origin, and moving along its own axes — by the exponential map: pose ∘ exp(ω, v) (see Pose’s steps).

Source§

fn stay(&self, at: &Self, scale: Scalar) -> GeopResult<Rows>

A number its difference from at; a pose its position’s, and its rotation’s — a turn as the distance it moves a point scale from its axis (see Pose’s).

Source§

fn same(&self, other: &Self) -> bool

The same enclosure: what tells a step that changed nothing.

Source§

fn carried(&self, from: &Self, to: &Self) -> Option<Self>

A pose by a pose, as poses are (see Pose’s); a number by nothing.

Source§

fn dimension(&self) -> usize

How many numbers a step of it takes. None, for a value no solve moves.
Source§

fn retract(&self, step: &[Scalar]) -> GeopResult<Self>

Where step — Variable::dimension numbers — takes it: the value a solver tries next, a free choice, so sharp.
Source§

fn retract_over(&self, step: &[Scalar]) -> GeopResult<Self>

Every value a step in the box step takes it to: an enclosure, nothing sharpened — of the value it stands for, which a sharp value may only approximate (a rotation’s unit quaternion).
Source§

fn differential(&self, step: &[Scalar]) -> GeopResult<Option<Vec<Vec<Scalar>>>>

The differential of the retraction over the box step: the matrix D, one row per number of a step, such that for every δ in the box a step dδ further, retract(δ + dδ), is to first order the step D dδ from retract(δ) — an enclosure for every δ in the box. None for the identity: a step that adds to the value.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.