pub enum ThreadUnit {
Centimeters,
Inches,
Decipoints,
}Expand description
Allowed units for thread thickness info.
Variants§
Centimeters
Centimeters
Inches
Inches
Decipoints
Decipoints, seems to be 1/10 of a point (as in 12 pt font). 1/720 of an inch.
Trait Implementations§
Source§impl Clone for ThreadUnit
impl Clone for ThreadUnit
Source§fn clone(&self) -> ThreadUnit
fn clone(&self) -> ThreadUnit
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 moreimpl Copy for ThreadUnit
Source§impl Debug for ThreadUnit
impl Debug for ThreadUnit
Source§impl Display for ThreadUnit
impl Display for ThreadUnit
impl Eq for ThreadUnit
Source§impl FromStr for ThreadUnit
impl FromStr for ThreadUnit
Source§impl PartialEq for ThreadUnit
impl PartialEq for ThreadUnit
impl StructuralPartialEq for ThreadUnit
Source§impl TryFrom<&str> for ThreadUnit
impl TryFrom<&str> for ThreadUnit
Source§impl WifValue for ThreadUnit
impl WifValue for ThreadUnit
Source§const EXPECTED_TYPE: &'static str = "inches, centimeters, or decipoints"
const EXPECTED_TYPE: &'static str = "inches, centimeters, or decipoints"
Expected type to find in the wif file
Source§fn parse(string_value: &str, key_for_err: &str) -> Result<Self, ParseError>where
Self: Sized,
fn parse(string_value: &str, key_for_err: &str) -> Result<Self, ParseError>where
Self: Sized,
Parse from the string value in the
.wif. Read moreSource§fn to_wif_string(&self) -> String
fn to_wif_string(&self) -> String
Serialize into a string
Source§fn type_error(string_value: &str, key_for_err: &str) -> ParseError
fn type_error(string_value: &str, key_for_err: &str) -> ParseError
Construct a parse error
Auto Trait Implementations§
impl Freeze for ThreadUnit
impl RefUnwindSafe for ThreadUnit
impl Send for ThreadUnit
impl Sync for ThreadUnit
impl Unpin for ThreadUnit
impl UnsafeUnpin for ThreadUnit
impl UnwindSafe for ThreadUnit
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.