Skip to main content

Netlist

Struct Netlist 

Source
pub struct Netlist {
Show 15 fields pub axes: Vec<AxisNode>, pub motors: Vec<MotorNode>, pub sections: Vec<SectionNode>, pub bodies: Vec<BodyNode>, pub guides: Vec<GuideNode>, pub idlers: Vec<IdlerNode>, pub frame: Option<FrameNode>, pub spans: Vec<SpanNode>, pub lean: Option<LeanNode>, pub gantry: Option<GantryNode>, pub tcp: Option<TcpNode>, pub refs: Vec<String>, pub values: Vec<(&'static str, String)>, pub linkage: Option<LinkageNode>, pub scissor: Option<ScissorNode>,
}
Expand description

The [machine] part, read and checked; indices point into the node lists, motors in their order of the file.

Fields§

§axes: Vec<AxisNode>§motors: Vec<MotorNode>§sections: Vec<SectionNode>§bodies: Vec<BodyNode>§guides: Vec<GuideNode>§idlers: Vec<IdlerNode>§frame: Option<FrameNode>§spans: Vec<SpanNode>§lean: Option<LeanNode>§gantry: Option<GantryNode>§tcp: Option<TcpNode>§refs: Vec<String>

Every dotted path a number field named: these keys of the file are in use.

§values: Vec<(&'static str, String)>

The value tables of screws, racks, linear motors and strain wave gears: the registered one-axis machines’ table each is laid out as (“screw”, …), and its path in the file.

§linkage: Option<LinkageNode>

The linkage of a file that has one, planar (crate::linkage) or spatial (crate::spatial); its netlist has no belts, bodies or guides.

§scissor: Option<ScissorNode>

The scissor lift of a file that has one (crate::scissor); its netlist has one axis and one motor.

Implementations§

Source§

impl Netlist

Source

pub fn parse(cfg: &Config) -> Result<Self, 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.