Expand description
IntegerWithUnits : A whole number dimension and its unit of measurement. For example, this can represent 100 pixels.
Fields
value: i32The dimension value.
units: StringThe unit of measurement.
Implementations
sourceimpl IntegerWithUnits
impl IntegerWithUnits
sourcepub fn new(value: i32, units: String) -> IntegerWithUnits
pub fn new(value: i32, units: String) -> IntegerWithUnits
A whole number dimension and its unit of measurement. For example, this can represent 100 pixels.
Trait Implementations
sourceimpl Clone for IntegerWithUnits
impl Clone for IntegerWithUnits
sourcefn clone(&self) -> IntegerWithUnits
fn clone(&self) -> IntegerWithUnits
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for IntegerWithUnits
impl Debug for IntegerWithUnits
sourceimpl Default for IntegerWithUnits
impl Default for IntegerWithUnits
sourcefn default() -> IntegerWithUnits
fn default() -> IntegerWithUnits
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for IntegerWithUnits
impl<'de> Deserialize<'de> for IntegerWithUnits
sourcefn 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
sourceimpl PartialEq<IntegerWithUnits> for IntegerWithUnits
impl PartialEq<IntegerWithUnits> for IntegerWithUnits
sourcefn eq(&self, other: &IntegerWithUnits) -> bool
fn eq(&self, other: &IntegerWithUnits) -> bool
sourceimpl Serialize for IntegerWithUnits
impl Serialize for IntegerWithUnits
impl StructuralPartialEq for IntegerWithUnits
Auto Trait Implementations
impl RefUnwindSafe for IntegerWithUnits
impl Send for IntegerWithUnits
impl Sync for IntegerWithUnits
impl Unpin for IntegerWithUnits
impl UnwindSafe for IntegerWithUnits
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more