pub struct CableChain {
pub mass_per_m: f64,
pub length0: f64,
pub drag: f64,
}Expand description
A cable chain along an axis, fixed at the x = 0 end: half of every metre the carriage travels joins the run that moves with it. It drags with a constant force. All zero with the effect off.
Fields§
§mass_per_m: f64§length0: f64Chain that moves with the carriage at x = 0.
drag: f64Implementations§
Source§impl CableChain
impl CableChain
pub fn from_config(cfg: &Config) -> Result<Self, ConfigError>
Trait Implementations§
Source§impl Clone for CableChain
impl Clone for CableChain
Source§fn clone(&self) -> CableChain
fn clone(&self) -> CableChain
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CableChain
impl RefUnwindSafe for CableChain
impl Send for CableChain
impl Sync for CableChain
impl Unpin for CableChain
impl UnsafeUnpin for CableChain
impl UnwindSafe for CableChain
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more