pub struct BeltSection {
pub id: &'static str,
pub owner_key: &'static str,
pub pretension: f64,
}Expand description
A belt section for the belt view: the id its signals start with, <id>.tension (N) and <id>.stretch (m, its
length less that of its belt unstretched), who it is as a translation key, and the tension it has at rest.
Fields§
§id: &'static str§owner_key: &'static str§pretension: f64Trait Implementations§
Source§impl Clone for BeltSection
impl Clone for BeltSection
Source§fn clone(&self) -> BeltSection
fn clone(&self) -> BeltSection
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 moreSource§impl Debug for BeltSection
impl Debug for BeltSection
Source§impl PartialEq for BeltSection
impl PartialEq for BeltSection
Source§fn eq(&self, other: &BeltSection) -> bool
fn eq(&self, other: &BeltSection) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BeltSection
Auto Trait Implementations§
impl Freeze for BeltSection
impl RefUnwindSafe for BeltSection
impl Send for BeltSection
impl Sync for BeltSection
impl Unpin for BeltSection
impl UnsafeUnpin for BeltSection
impl UnwindSafe for BeltSection
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