Struct enso_data::text::Size [−][src]
pub struct Size { pub value: usize, }
Expand description
Strongly typed size of container.
Fields
value: usize
Implementations
impl Size
[src]
impl Size
[src]pub fn checked_sub(self, rhs: Size) -> Option<Self>
[src]
pub fn checked_sub(self, rhs: Size) -> Option<Self>
[src]Checked subtraction. Computes self - rhs
, returning None
if overflow occurred.
Trait Implementations
impl AddAssign<Size> for Size
[src]
impl AddAssign<Size> for Size
[src]fn add_assign(&mut self, rhs: Size)
[src]
fn add_assign(&mut self, rhs: Size)
[src]Performs the +=
operation. Read more
impl AddAssign<Size> for Index
[src]
impl AddAssign<Size> for Index
[src]fn add_assign(&mut self, rhs: Size)
[src]
fn add_assign(&mut self, rhs: Size)
[src]Performs the +=
operation. Read more
impl<'de> Deserialize<'de> for Size
[src]
impl<'de> Deserialize<'de> for Size
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
impl Ord for Size
[src]
impl Ord for Size
[src]impl PartialOrd<Size> for Size
[src]
impl PartialOrd<Size> for Size
[src]fn partial_cmp(&self, other: &Size) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &Size) -> Option<Ordering>
[src]This method returns an ordering between self
and other
values if one exists. Read more
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than (for self
and other
) and is used by the <
operator. Read more
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl SubAssign<Size> for Size
[src]
impl SubAssign<Size> for Size
[src]fn sub_assign(&mut self, rhs: Size)
[src]
fn sub_assign(&mut self, rhs: Size)
[src]Performs the -=
operation. Read more
impl SubAssign<Size> for Index
[src]
impl SubAssign<Size> for Index
[src]fn sub_assign(&mut self, rhs: Size)
[src]
fn sub_assign(&mut self, rhs: Size)
[src]Performs the -=
operation. Read more
impl Copy for Size
[src]
impl Eq for Size
[src]
impl StructuralEq for Size
[src]
impl StructuralPartialEq for Size
[src]
Auto Trait Implementations
impl RefUnwindSafe for Size
impl Send for Size
impl Sync for Size
impl Unpin for Size
impl UnwindSafe for Size
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> HasRefValue for T where
T: ?Sized,
[src]
impl<T> HasRefValue for T where
T: ?Sized,
[src]type RefValue = T
impl<T> PhantomConversions for T
[src]
impl<T> PhantomConversions for T
[src]fn phantom_into<P>() -> P where
Self: PhantomInto<P>,
[src]
Self: PhantomInto<P>,
fn phantom_from<P>() -> Self where
P: PhantomInto<Self>,
[src]
P: PhantomInto<Self>,
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
pub fn to_subset(&self) -> Option<SS>
pub fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct self
from the equivalent element of its
superset. Read more
pub fn is_in_subset(&self) -> bool
pub fn is_in_subset(&self) -> bool
Checks if self
is actually part of its subset T
(and can be converted to it).
pub fn to_subset_unchecked(&self) -> SS
pub fn to_subset_unchecked(&self) -> SS
Use with care! Same as self.to_subset
but without any property checks. Always succeeds.
pub fn from_subset(element: &SS) -> SP
pub fn from_subset(element: &SS) -> SP
The inclusion map: converts self
to the equivalent element of its superset.
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> TypeDisplay for T
[src]
impl<T> TypeDisplay for T
[src]pub default fn type_display() -> String
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
pub fn vzip(self) -> V
impl<T, Right> ClosedAdd<Right> for T where
T: Add<Right, Output = T> + AddAssign<Right>,
T: Add<Right, Output = T> + AddAssign<Right>,
impl<T, Right> ClosedSub<Right> for T where
T: Sub<Right, Output = T> + SubAssign<Right>,
T: Sub<Right, Output = T> + SubAssign<Right>,
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,