Skip to main content

Based

Struct Based 

Source
pub struct Based { /* private fields */ }
Expand description

A machine on a compliant base. Its state is the machine’s, then the base’s deflection in each compliant direction, then their rates.

Implementations§

Source§

impl Based

Source

pub fn load(&self, s: &[f64], rate: &[f64]) -> [f64; 6]

What the machine at state s (its own), whose state changes at rate, puts on the base: force and torque about the pivot, less what it put on it at rest at the start pose.

Trait Implementations§

Source§

impl Machine for Based

Source§

fn equilibrium(&self, tool: &[f64], state: &mut Vec<f64>, torque: &mut [f64])

The tool, not the machine on a rigid base, at tool: the machine stands off by the base’s deflection under it.

Source§

fn scale_state(&self, state: &[f64], pos: &mut [f64], vel: &mut [f64])

The scale stands on the machine, so the base’s deflection is not in it either.

Source§

fn energy(&self, state: &[f64]) -> f64

The machine’s, plus the base’s kinetic and elastic energy (its potential energy in gravity left out: one-way the machine’s own energy is not conserved with it anyway). With effects.base_reaction the base’s share as the module has it, which the two together conserve.

Source§

fn contact_axes(&self) -> usize

The machine’s contact coordinates, then the base’s deflections (dofs): the clearance’s slopes along these are those of whichever part touches, and the push’s generalised forces on them act on the base directly (pushed). Before, the push reached the base through the tool’s move by the base’s deflection (tool_shift), which is the touching part’s only where it is at the tool: a gantry whose leaning Z axis has contact coordinates of its own (x, z, q, u) sprang back off a slab on its compliant base.

Source§

fn contact_state(&self, state: &[f64], pos: &mut [f64], vel: &mut [f64])

The machine’s (contact_axes), then the base’s deflections and their rates. One-way (without effects.base_reaction) the base is outside the energy budget: neither its energy nor its damping is booked (effect_signals, loss_powers), since the machine does not feel it and nothing in the budget drives it. So there the base’s rates are left out (0), and the crash row books the push’s work on the machine alone; its work on the base goes where the base’s other loads’ does (pushed). Two-way they are in.

Source§

fn contact_placed(&self, state: &[f64], at: &[f64], out: &mut Vec<f64>)

The machine’s parts placed at at’s first coordinates, the base deflected by the rest, its rates as they are.

Source§

fn resonance_hz(&self, tool_pose: &[f64]) -> Option<f64>

The lower of the machine’s resonance and the base’s lowest mode that moves the tool along its first axis.

Source§

fn sway_modes(&self, tool_pose: &[f64]) -> Vec<Mode>

The machine’s own with the base’s, as modes.

Source§

fn signal_infos(&self) -> Vec<SignalInfo>

The machine’s base signals, the base’s deflections (base.<dof>, m or rad), then the machine’s effect signals.

Source§

fn effect_signals(&self, state: &[f64], torque: &[f64], out: &mut Vec<f64>)

The machine’s, with effects.base_reaction the base’s energy in its energy.* and its damping loss last.

Source§

fn scene(&self, state: &[f64], out: &mut Scene)

The machine’s scene, moved with the base times the exaggeration: every point (the parts, the ends of a belt’s strips, labels, arrows) by the base’s translation and its tilt at its own place (scene_mover).

Source§

fn frame_momentum(&self, state: &[f64]) -> Option<FrameMomentum>

For effects.base_compliance: the momentum, mass and outside force of everything that moves on the base at state state (see FrameMomentum). The base takes the rate of change of the momentum back, and the weight and the outside force. None where the machine cannot tell; then it cannot stand on a compliant base.
Source§

fn base_shift( &self, tool_pose: &[f64], pivot: [f64; 3], shift: &[f64; 6], out: &mut [f64], )

For effects.base_compliance: how far the tool pose moves at tool_pose when the base moves by shift (translation [x, y, z] in m and a small tilt [x, y, z] in rad about pivot, in the frame of FrameMomentum), written into out (as long as the axes). By default the axes x, y, z take the move of the tool point at the pose’s x, y, z, u + theta x (r - pivot), and a rotary axis with an id of BASE_AXES[1], or c (about z), the tilt; a machine whose tool axes are its joints moves nothing.
Source§

fn rating_checks(&self) -> Vec<RatingCheck>

The ratings of the machine’s own parts (ball screw, rack, strain wave gear, …) that its cycle is judged against. Empty where it has none beyond the common ones.
Source§

fn axes(&self) -> &[AxisInfo]

Source§

fn motors(&self) -> &[MotorInfo]

Source§

fn motor_linear(&self, motor: usize) -> bool

Whether motor motor is a linear motor: its angle, speed and torque signals are then m, m/s and N, and the “motor-speed” verdict’s value is m/s. False by default, a rotary motor.
Source§

fn inverse(&self, tool: &[f64], motors: &mut [f64])

Tool pose to motor shaft angles, and back. Both are pure kinematics.
Source§

fn forward(&self, motors: &[f64], tool: &mut [f64])

Source§

fn state_len(&self) -> usize

Source§

fn derivatives(&self, state: &[f64], torque: &[f64], out: &mut [f64])

Source§

fn tool_state(&self, state: &[f64], pos: &mut [f64], vel: &mut [f64])

Source§

fn set_tool_velocity(&self, state: &mut [f64], vel: &[f64])

Gives a state at rest (see equilibrium) the tool speeds vel: everything that moves with the tool, motors included, moves along as the kinematics say.
Source§

fn motor_state(&self, state: &[f64], pos: &mut [f64], vel: &mut [f64])

Source§

fn feedforward_torque( &self, tool_pos: &[f64], tool_acc: &[f64], out: &mut [f64], )

Motor torques from the rigid model for a tool pose and acceleration, including gravity.
Source§

fn feedforward_torque_moving( &self, tool_pos: &[f64], tool_vel: &[f64], tool_acc: &[f64], out: &mut [f64], )

feedforward_torque with the tool’s speed too, for what the speed asks of the motors (the centripetal and Coriolis part of the torque): from a kinematics that is not linear, and from a mass matrix that changes with the pose (an arm in joint space, whose motor angles are linear in its joints, has them too). The controller uses this one; the default leaves the speed out, which is exact only where the motor angles are linear in the tool pose and the inertia the motors see does not change with it (a gantry, one linear axis).
Source§

fn rigid_motor_torque( &self, angle: &[f64], speed: &[f64], acc: &[f64], out: &mut [f64], )

The motor torques of the same rigid, loss-free model at motor angles, speeds and accelerations: what fitting a trace in the motors’ own coordinates needs (identify::fit_joints). By default through the tool: its pose by forward, its speed and acceleration by central differences along the motors’ motion over ±0.1 ms, then feedforward_torque_moving. A machine whose feedforward_torque_moving leaves out the speed terms of a kinematics that is not linear overrides this.
Source§

fn twist(&self, torque: &[f64], acc: &[f64], out: &mut [f64])

Where a trace’s row has the load of an elastic drive train, per motor in motor radians: the twist of the train that the motor torque holds, less what the rotor’s own acceleration acc takes (the motor’s angle less where the rigid model puts the motor for the load’s pose). Zeros by default: the trains are rigid. For fitting a trace (identify::fit_joints), with rigid_split_torque.
Source§

fn twist_at(&self, angle: &[f64], torque: &[f64], acc: &[f64], out: &mut [f64])

twist with the motors at angle (motor radians, the trace’s): behind a screw whose stiffness follows its nut, the train’s spring where the nut is, on the shaft’s point the rotor has turned to it. By default twist, for a machine whose trains have one stiffness along the stroke.
Source§

fn rigid_split_torque( &self, angle: &[f64], speed: &[f64], acc: &[f64], rotor_acc: &[f64], out: &mut [f64], )

rigid_motor_torque with the load at angle, speed, acc (where the rigid model puts the motors for it) and the rotors at their own acceleration rotor_acc: what an elastic train (twist) needs. By default the rigid torques at the load’s motion, the rotors turning with it.
Source§

fn rigid_tensions(&self, tool_pos: &[f64], tool_acc: &[f64], out: &mut Vec<f64>)

The tension of each belt section (N, in the order of belt_sections) that the loss-free rigid model of feedforward_torque gives at a tool pose and acceleration: what the belt has to pull on the moved masses (not on the pulleys and rotors, which the motors turn), shared out so that the belt keeps its length. Linear in the acceleration. Appends nothing where the machine has no belt sections to tell.
Source§

fn rigid_tensions_moving( &self, tool_pos: &[f64], tool_vel: &[f64], tool_acc: &[f64], out: &mut Vec<f64>, )

rigid_tensions with the tool’s velocity too, for machines whose carriages accelerate with the speed (a delta’s rods turn: h’’ = J^-1 (p’’ - J_x^-1 w)). By default the speed does not matter.
Source§

fn tension_band(&self) -> Option<[f64; 2]>

The band [least, most] (N) the time-optimal plan keeps rigid_tensions within, where the machine has it from its own parts (cables between winches and a platform); None: ratings.belt_min_tension_n and belt_max_tension_n.
Source§

fn rigid_guide_loads( &self, tool_pos: &[f64], tool_acc: &[f64], out: &mut Vec<[f64; 2]>, )

The load of each guide that reports axis.<id>.guide_load (N, in that order) in the loss-free rigid model at a tool pose and acceleration, as [rest, moving] for the load rest + |moving|: moving linear in the acceleration and zero without. The time-optimal plan keeps it within ratings.guide_max_load_n. Appends nothing where the machine does not tell.
Source§

fn steady_friction(&self, tool_pos: &[f64], tool_vel: &[f64], out: &mut [f64])

The friction torque at each motor (N m, in the order of motors, into out) while the tool at tool_pos moves steadily at tool_vel: every friction of the machine’s own model at that speed (guides at their steady sliding level, the motor shaft, the gearbox’s drag, the joints, idlers, screws, the cable chain), carried to the motor as the rigid model carries a load (through the ratios, and the efficiencies where the motor drives). Positive where the motor has to give positive torque against it. For the friction feedforward from the machine’s model (drive.friction_feedforward_model = "machine"). Zero by default: a machine that tells no friction.
Source§

fn rigid_friction( &self, tool_pos: &[f64], tool_dir: &[f64], out: &mut Vec<[f64; 2]>, )

The steady friction of the guides (and other sliding contacts the motors drive, not the motors’ own shafts and gearboxes) as torque at each motor (in the order of motors), while the tool at tool_pos moves along tool_dir (its rate per unit of path): [c, b] for c + b v at the speed v along the path, positive where the motor has to give positive torque against it. For the time-optimal plan. Appends nothing where the machine does not tell.
Source§

fn rigid_friction_rise( &self, tool_pos: &[f64], tool_dir: &[f64], out: &mut Vec<Vec<[f64; 2]>>, )

What rigid_friction’s c + b v leaves out near a standstill, the Stribeck rise: per motor a [level, speed] for each contact it drives, the torque level exp(-(v / speed)^2) more at the speed v along the path (the friction is then c + sum level exp(..) + b v; level signed as c, speed in the path’s units, above 0). For the time-optimal plan, which holds the room for it at the most it takes over the speeds up to v. Appends nothing where the machine has no rise (the default).
Source§

fn rigid_checks( &self, tool_pos: &[f64], tool_vel: &[f64], tool_acc: &[f64], out: &mut Vec<f64>, )

What limits the time-optimal plan among the machine’s own parts: per check of rating_checks (in its order) the value of its signal in the loss-free rigid model at a tool pose, speed and acceleration (a screw’s speed, its force, a rack’s feed force), or NaN where the rigid model does not give it (a life, a sync error). The plan keeps each value within its check’s limit. Appends nothing where the machine does not tell (no row is planned).
Source§

fn set_payload_attached(&mut self, attached: bool)

Source§

fn valves(&self) -> Vec<(String, f64)>

Actuators that a valve moves and no drive (pneumatic cylinders): each one’s id and the valve command it starts with (+1 extend, -1 retract, 0 the closed centre of a 5/3 valve), for a cycle segment’s valves and wait. None by default.
Source§

fn set_valve(&mut self, valve: usize, command: f64)

Told every step the command of valve valve (of valves); the valve switches after its own delay.
Source§

fn end_sensors(&self, valve: usize) -> [bool; 2]

Valve valve’s end-position sensors, [retracted, extended], each after its delay.
The rigid bodies whose inertial parameters a trace can be fitted for (identify::fit_joints), by name: the links of a URDF chain. None by default.
Changes link link’s inertial parameters about its joint’s frame, from those it was built with: mass, first moment and inertia all times factor, then moment (kg m, in its frame) added to the first moment with mass and inertia about the frame kept. The rigid torques are linear in each, which the fit takes its columns from. (1, [0; 3]) restores it. Nothing by default.
Source§

fn set_dwelling(&mut self, dwelling: bool)

Told every step whether the cycle dwells at a target, for machines with a process force there.
Source§

fn set_tool_force(&mut self, force: &[f64]) -> bool

An external force on the contact coordinates (contact_state, by default the tool’s: one component per axis, N, or N m on a rotary axis; the generalised force of each), held until changed: an obstacle’s push on the parts that can touch it (effects.crash). Returns whether the machine takes it; by default false (not supported), and the push then acts on the motors through the rigid kinematics. The force’s power is not in the machine’s loss rows: the simulation integrates it as the obstacles’ work (the budget’s crash row), F . the contact coordinates’ rates. Machines that take it put its generalised forces into their equations beyond their transmissions, at every stage of the integration (tool_force_on_rates): the machine files’ ConfigMachine, the joint machines (chain::JointMachine) and most machine crates. The default stays where the machine’s equations are another’s that does not take it.
Source§

fn push_substeps(&self) -> u32

How many times finer still than the simulation’s own refinement under a push on the contact coordinates (Sim’s PUSH_SUBSTEPS) a base step with one is to be taken: where the contact’s spring holds a coordinate far lighter than the load’s (a leaning axis pushed through its lever). 1 by default.
Source§

fn set_brake_engaged(&mut self, engaged: bool)

Told every step whether the drives are disabled, for machines with holding brakes.
Source§

fn substeps_wanted( &self, state: &[f64], torque: &[f64], dt: f64, substeps: u32, ) -> u32

How many parts the coming base step dt (s), taken in substeps sub-steps, is to have each sub-step cut into, at least 1, from its start state s and the motors’ torques: for what changes faster than a sub-step resolves (a gearbox’s efficiency switch held near zero power at a large torque, mech::fade_substeps; a joint’s stop met within the step, mech::STOP_SUBSTEPS). The model is the same; only its integration is finer (integrate::advance_refined). 1 by default.
Source§

fn after_step(&mut self, state: &mut [f64], dt: f64)

Called after every base step, for what happens at once and not by integration (a belt tooth that jumps): the machine may change state and must report what that took out of its energy among its loss powers over this step of dt seconds, so that the energy budget closes.
Source§

fn memory(&self) -> Vec<f64>

What the machine carries from one step to the next outside state (the gearboxes’ hysteresis anchors that after_step moves on, a numerical inverse’s last solution), as a fixed count of numbers: a snapshot of the simulation keeps them and sets them back with set_memory. None by default.
Source§

fn set_memory(&mut self, memory: &[f64])

Sets back what memory gave.
Source§

fn set_part_temperatures(&mut self, rises: &[f64])

With effects.thermal_feedback: the temperature rise (K) of each part of thermal_parts, in that order, for the friction and losses that change with it.
Source§

fn mode_shape(&self, tool_pose: &[f64]) -> Option<(f64, Vec<f64>)>

The mode resonance_hz reports at a tool pose: its frequency in Hz and its shape, a direction in the state (as long as it, positions only, rates zero). The equilibrium at that pose plus a small amplitude times the shape, drawn with scene, shows how the machine moves in that mode; one unit of amplitude moves the tool by 1 m along its first axis. None where the machine tells no resonance.
Source§

fn modes(&self, tool_pose: &[f64]) -> Vec<Mode>

Every structural mode the machine knows at a tool pose, lowest first: for a second input shaper, the resonance over an axis’s stroke (sim-cli modes) and the app’s plot of it. By default the one of resonance_hz, its damping unknown (0).
Source§

fn trains(&self, tool_pose: &[f64]) -> Vec<Option<Train>>

Per motor at a tool pose its elastic drive train (Train), for the time-optimal plan to keep back the speed the train’s twist adds to the motor’s: None, or no entry, where the train is rigid (no allowance).
Source§

fn belt_wraps(&self, tool_pose: &[f64]) -> Vec<f64>

With effects.belt_wrap: the angle (rad) by which the belt wraps each driven pulley at a tool pose, from the places of the pulleys and idlers, in the order of motors; NaN for a motor that drives no belt. Empty where the machine gives no belt geometry or the effect is off: then ratings.belt_teeth_in_mesh stands for the teeth in mesh.
Source§

fn unreachable(&self, tool_pose: &[f64], slack: f64) -> Option<&'static str>

Why a tool pose within the axis ranges cannot be gone to, as a translation key: out of reach of the kinematics, outside the working envelope, beyond a joint’s stop. slack (m) widens the envelope at its edges, as it widens the axis ranges for a setpoint at rest. None where it can; machines whose workspace is the box of their axis ranges keep this default.
Source§

fn refuses_pick(&self, tool_pose: &[f64]) -> Option<&'static str>

Why the payload cannot be picked up with the tool at rest at tool_pose (a cycle segment that attaches it), as a translation key: the machine’s own physical reason (a hook block that would hang inside the payload). None where it can, by default.
Source§

fn condition(&self, tool_pose: &[f64]) -> Option<f64>

The 2-norm condition number of the kinematics’ Jacobian at a tool pose, for the workspace map: 1 where the motors move the tool equally well in every direction, larger towards a singularity, f64::INFINITY out of reach of the kinematics (whatever the envelope and the joints’ stops say, which unreachable tells). None for a machine that has no map to show: one whose motor angles are a linear function of the tool pose.
Source§

fn setpoint_slack(&self) -> f64

How far the setpoint of the machine at rest may be from the pose of its tool, m: the setpoint is where the motors stand, and what belts and gears give way under the load they hold puts the tool off it. The controller takes paths and trajectories that start or run this far beyond the travel range or the envelope. 0.1 mm by default (12 and 46 um on the gantry holding its Z axis).
Source§

fn cam(&self) -> Option<CamMaster>

An electronic cam the controller runs as the cycle: the master’s motion, None for a machine whose cycle is its [[cycle.segment]]. Each pass is one period of the master once it is up to speed; a stop runs it down.
Source§

fn cam_at(&self, master: f64, out: &mut [[f64; 4]])

With cam: each tool axis (the slaves) at the master position master, as [s, s’, s’‘, s’‘’], the rates over the master.
Source§

fn cam_curve(&self) -> Option<CamCurve>

With cam: the curve cam_at reads, apart from the machine, so that it still reads the same once the config has changed (the input shaper reads the plan of past cycles off it). None without a cam.
Source§

fn gantry_motors(&self) -> Option<[usize; 2]>

A dual-drive gantry: the two motors that drive its axis side by side, the master first, for the drives’ synchronisation (gantry.sync). None without one.
Source§

fn base_signals(&self, state: &[f64], torque: &[f64], out: &mut Vec<f64>)

The machine’s own signals but those of the effect views; cheap enough to be asked for every step.
Source§

fn loss_powers(&self, state: &[f64], torque: &[f64], out: &mut Vec<f64>)

The loss powers alone, the signals power.* in their order among the signals, without the rest of effect_signals: what warms the parts every step (thermal_parts). Empty where the machine reports none.
Source§

fn scene_point(&self, tool_pose: &[f64]) -> Option<[f64; 3]>

Where the scene draws the tool when it is at tool_pose, in scene coordinates, so that a front end can draw a path of the tool into the scene. None for a machine that has no such mapping.
Source§

fn collision_bodies(&self, state: &[f64]) -> Vec<Aabb>

The parts of the machine that can hit an obstacle of the config, as boxes in scene coordinates at state. By default the tool alone, as a point where scene_point puts it (none without that mapping); a machine names the boxes of its scene that move with the tool through scene::scene_boxes.
Source§

fn collision_capsules(&self, state: &[f64]) -> Vec<Capsule>

The slanted parts of the machine that can hit an obstacle (rods, arms, shafts), as capsules in scene coordinates at state, beside the boxes of collision_bodies. None by default.
Source§

fn self_collision_capsules(&self, state: &[f64]) -> Vec<Capsule>

The capsules the planning check of the machine’s own parts looks at (collision::check_path): by default those of collision_capsules. A machine whose links are not checked against obstacles can add them here.
Source§

fn connected_bodies( &self, state: &[f64], boxes: usize, capsules: usize, ) -> Option<Vec<(usize, usize)>>

Which of the machine’s own parts belong together and so are not checked against each other, at state, with boxes boxes (collision_bodies) and capsules capsules (self_collision_capsules): pairs of indices into the boxes followed by the capsules. None, the default, takes the rule that parts which touch, overlap or lie closer than profile.min_clearance_m to each other at the first pose checked are joined (a carriage on its rail, a link at its joint) and every other pair is checked; that cannot see a collision of parts already in contact at that pose. A machine that knows its parts’ adjacency tells it exactly. The step of the simulation is not touched: parts do not push each other there.
Source§

fn friction_contacts(&self) -> Vec<FrictionContact>

The friction contacts for the friction view. Empty where the machine tells none.
Source§

fn friction_curve(&self, i: usize, speed: f64, load_scale: f64) -> [f64; 3]

The steady sliding force of contact i at speed, with its levels scaled by load_scale, split into [Coulomb, viscous, stiction]. It opposes a positive speed.
Source§

fn friction_rotary(&self, i: usize) -> bool

Whether contact i is a rotary one (a joint’s bearings): its speed signal is an angular speed (rad/s) and its parts torques (N m), where a sliding one has m/s and N. The friction view draws the labels of its kind.
Source§

fn friction_speed_limit(&self, i: usize, motor_speed: &[f64]) -> Option<f64>

The speed (m/s, or rad/s for a rotary contact) up to which the friction view draws contact i’s curve, where the machine knows it from the highest speed of each motor’s rotor, motor_speed (rad/s, from its drive); None: the owner axis’s speed limit, or the fastest axis’s.
Source§

fn belt_sections(&self) -> Vec<BeltSection>

The belt sections for the belt view. Empty where the machine tells none.
Source§

fn thermal_parts(&self) -> Vec<ThermalPart>

The parts that warm with a loss power, for the thermal model and view. Empty where the machine tells none.
Source§

fn thermal_values(&self, id: &str) -> Option<(f64, f64)>

The resistance to ambient (K/W) and the time constant (s) of the thermal part id, where the machine works them out from the part’s own size (a belt: its surface and mass) in place of the config’s thermal.<kind>_resistance_k_w and thermal.<kind>_time_constant_s; None: the config’s.
Source§

fn modes_small_amplitude(&self, tool_pose: &[f64]) -> Vec<Mode>

The same modes as modes for small vibrations: where a joint’s gearbox has hysteresis (gearbox_lost_motion), the stiffness it shows at a reversal is K1 + sigma, not the large-amplitude K1 modes uses. A shaper for the move’s own swing takes modes (the twists of the move are far above the hysteresis loop); one for the residual ringing below about 1e-4 rad at the joint takes these. By default the same as modes.
Source§

fn signals(&self, state: &[f64], torque: &[f64], out: &mut Vec<f64>)

Every signal of signal_infos.
Source§

fn adopt_state(&self, old: &dyn Machine, old_state: &[f64]) -> Vec<f64>

Carries a running state over to a machine rebuilt from a changed config.

Auto Trait Implementations§

§

impl !RefUnwindSafe for Based

§

impl !Sync for Based

§

impl !UnwindSafe for Based

§

impl Freeze for Based

§

impl Send for Based

§

impl Unpin for Based

§

impl UnsafeUnpin for Based

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.