Struct surge_traits::imports::ZoomFactor
source · [−]pub struct ZoomFactor(pub i32);
Tuple Fields
0: i32
Trait Implementations
sourceimpl Add<ZoomFactor> for ZoomFactor
impl Add<ZoomFactor> for ZoomFactor
type Output = ZoomFactor
type Output = ZoomFactor
The resulting type after applying the +
operator.
sourcefn add(self, x: ZoomFactor) -> <ZoomFactor as Add<ZoomFactor>>::Output
fn add(self, x: ZoomFactor) -> <ZoomFactor as Add<ZoomFactor>>::Output
Performs the +
operation. Read more
sourceimpl Clone for ZoomFactor
impl Clone for ZoomFactor
sourcefn clone(&self) -> ZoomFactor
fn clone(&self) -> ZoomFactor
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 more
sourceimpl Debug for ZoomFactor
impl Debug for ZoomFactor
sourceimpl<'de> Deserialize<'de> for ZoomFactor
impl<'de> Deserialize<'de> for ZoomFactor
sourcefn deserialize<__D>(
__deserializer: __D
) -> Result<ZoomFactor, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<ZoomFactor, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Div<ZoomFactor> for ZoomFactor
impl Div<ZoomFactor> for ZoomFactor
type Output = ZoomFactor
type Output = ZoomFactor
The resulting type after applying the /
operator.
sourcefn div(self, x: ZoomFactor) -> <ZoomFactor as Div<ZoomFactor>>::Output
fn div(self, x: ZoomFactor) -> <ZoomFactor as Div<ZoomFactor>>::Output
Performs the /
operation. Read more
sourceimpl Mul<ZoomFactor> for ZoomFactor
impl Mul<ZoomFactor> for ZoomFactor
type Output = ZoomFactor
type Output = ZoomFactor
The resulting type after applying the *
operator.
sourcefn mul(self, x: ZoomFactor) -> <ZoomFactor as Mul<ZoomFactor>>::Output
fn mul(self, x: ZoomFactor) -> <ZoomFactor as Mul<ZoomFactor>>::Output
Performs the *
operation. Read more
sourceimpl Ord for ZoomFactor
impl Ord for ZoomFactor
sourceimpl PartialEq<ZoomFactor> for ZoomFactor
impl PartialEq<ZoomFactor> for ZoomFactor
sourcefn eq(&self, other: &ZoomFactor) -> bool
fn eq(&self, other: &ZoomFactor) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ZoomFactor) -> bool
fn ne(&self, other: &ZoomFactor) -> bool
This method tests for !=
.
sourceimpl PartialOrd<ZoomFactor> for ZoomFactor
impl PartialOrd<ZoomFactor> for ZoomFactor
sourcefn partial_cmp(&self, other: &ZoomFactor) -> Option<Ordering>
fn partial_cmp(&self, other: &ZoomFactor) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl Serialize for ZoomFactor
impl Serialize for ZoomFactor
sourcefn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
sourceimpl Sub<ZoomFactor> for ZoomFactor
impl Sub<ZoomFactor> for ZoomFactor
type Output = ZoomFactor
type Output = ZoomFactor
The resulting type after applying the -
operator.
sourcefn sub(self, x: ZoomFactor) -> <ZoomFactor as Sub<ZoomFactor>>::Output
fn sub(self, x: ZoomFactor) -> <ZoomFactor as Sub<ZoomFactor>>::Output
Performs the -
operation. Read more
impl Copy for ZoomFactor
impl Eq for ZoomFactor
impl StructuralEq for ZoomFactor
impl StructuralPartialEq for ZoomFactor
Auto Trait Implementations
impl RefUnwindSafe for ZoomFactor
impl Send for ZoomFactor
impl Sync for ZoomFactor
impl Unpin for ZoomFactor
impl UnwindSafe for ZoomFactor
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more