pub struct PositionType {
pub base: f64,
pub units: Option<PositionUnits>,
}Fields§
§base: f64§units: Option<PositionUnits>Trait Implementations§
Source§impl Clone for PositionType
impl Clone for PositionType
Source§fn clone(&self) -> PositionType
fn clone(&self) -> PositionType
Returns a duplicate of the value. Read more
1.0.0 · 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 PositionType
impl Debug for PositionType
Source§impl Default for PositionType
impl Default for PositionType
Source§fn default() -> PositionType
fn default() -> PositionType
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PositionTypewhere
PositionType: Default,
impl<'de> Deserialize<'de> for PositionTypewhere
PositionType: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl KvnDeserializer for PositionType
impl KvnDeserializer for PositionType
fn deserialize<'a>( lines: &mut Peekable<impl Iterator<Item = &'a str>>, ) -> Result<PositionType, KvnDeserializerErr<String>>
fn should_check_key_match() -> bool
fn from_kvn_str(kvn: &str) -> Result<Self, KvnDeserializerErr<String>>where
Self: Sized,
Source§impl PartialEq for PositionType
impl PartialEq for PositionType
Source§impl Serialize for PositionType
impl Serialize for PositionType
impl StructuralPartialEq for PositionType
Auto Trait Implementations§
impl Freeze for PositionType
impl RefUnwindSafe for PositionType
impl Send for PositionType
impl Sync for PositionType
impl Unpin for PositionType
impl UnsafeUnpin for PositionType
impl UnwindSafe for PositionType
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more