pub struct MotorName { /* private fields */ }Expand description
A motor’s manufacturer and designation, checked by Endpoint::motor so its page’s URL stays
in the API’s motors/ folder. Its fields are private, so it can’t be changed past the checks.
Implementations§
Source§impl MotorName
impl MotorName
Sourcepub fn manufacturer_slug(&self) -> &'static str
pub fn manufacturer_slug(&self) -> &'static str
The manufacturer’s slug, one of MANUFACTURERS.
Sourcepub fn designation(&self) -> &str
pub fn designation(&self) -> &str
The designation, as ThrustCurve spells it (H128W, F27R/L, 3683L851-P).
Trait Implementations§
impl Eq for MotorName
impl StructuralPartialEq for MotorName
Auto Trait Implementations§
impl Freeze for MotorName
impl RefUnwindSafe for MotorName
impl Send for MotorName
impl Sync for MotorName
impl Unpin for MotorName
impl UnsafeUnpin for MotorName
impl UnwindSafe for MotorName
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.