Enum zalgo::RandOrStatic
source · [−]Expand description
A random value or a static value
Variants
Rand
A random value in the given range, [start, end).
Static
Fields
value: usize
A static value, as given.
Trait Implementations
sourceimpl Clone for RandOrStatic
impl Clone for RandOrStatic
sourcefn clone(&self) -> RandOrStatic
fn clone(&self) -> RandOrStatic
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 RandOrStatic
impl Debug for RandOrStatic
sourceimpl From<Range<usize>> for RandOrStatic
impl From<Range<usize>> for RandOrStatic
sourceimpl From<usize> for RandOrStatic
impl From<usize> for RandOrStatic
sourceimpl Hash for RandOrStatic
impl Hash for RandOrStatic
sourceimpl PartialEq<RandOrStatic> for RandOrStatic
impl PartialEq<RandOrStatic> for RandOrStatic
sourcefn eq(&self, other: &RandOrStatic) -> bool
fn eq(&self, other: &RandOrStatic) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &RandOrStatic) -> bool
fn ne(&self, other: &RandOrStatic) -> bool
This method tests for !=
.
impl Copy for RandOrStatic
impl Eq for RandOrStatic
impl StructuralEq for RandOrStatic
impl StructuralPartialEq for RandOrStatic
Auto Trait Implementations
impl RefUnwindSafe for RandOrStatic
impl Send for RandOrStatic
impl Sync for RandOrStatic
impl Unpin for RandOrStatic
impl UnwindSafe for RandOrStatic
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)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more