Skip to main content

LinkageNode

Struct LinkageNode 

Source
pub struct LinkageNode {
    pub id: String,
    pub gearboxes: Vec<String>,
    /* private fields */
}
Expand description

The linkage node, read and checked: its number fields by name (an optional one left out is 0), and per arm the gearbox node’s id (arm k’s motor is the netlist’s motor k). Two arms: the planar linkage (LinkageMachine); three: the spatial one (crate::spatial::Delta).

Fields§

§id: String§gearboxes: Vec<String>

Implementations§

Source§

impl LinkageNode

Source

pub fn value(&self, name: &str) -> f64

The value of a number field of the node.

Trait Implementations§

Source§

impl Numbers for LinkageNode

Source§

fn number(&self, path: &str) -> Result<f64, ConfigError>

Any finite number.
Source§

fn invalid(&self, path: &str) -> ConfigError

The error that refuses the value at path.
Source§

fn positive(&self, path: &str) -> Result<f64, ConfigError>

Source§

fn non_negative(&self, path: &str) -> Result<f64, ConfigError>

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> 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, 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.