#[repr(i32)]pub enum RandomAlgorithm {
RngDefault = 0,
RngThreeFry = 1,
RngPhilox = 2,
}Variants§
Implementations§
Source§impl RandomAlgorithm
impl RandomAlgorithm
Sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
Sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
Source§impl Clone for RandomAlgorithm
impl Clone for RandomAlgorithm
Source§fn clone(&self) -> RandomAlgorithm
fn clone(&self) -> RandomAlgorithm
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RandomAlgorithm
impl Debug for RandomAlgorithm
Source§impl Default for RandomAlgorithm
impl Default for RandomAlgorithm
Source§fn default() -> RandomAlgorithm
fn default() -> RandomAlgorithm
Returns the “default value” for a type. Read more
Source§impl From<RandomAlgorithm> for i32
impl From<RandomAlgorithm> for i32
Source§fn from(value: RandomAlgorithm) -> i32
fn from(value: RandomAlgorithm) -> i32
Converts to this type from the input type.
Source§impl Hash for RandomAlgorithm
impl Hash for RandomAlgorithm
Source§impl Ord for RandomAlgorithm
impl Ord for RandomAlgorithm
Source§impl PartialEq for RandomAlgorithm
impl PartialEq for RandomAlgorithm
Source§impl PartialOrd for RandomAlgorithm
impl PartialOrd for RandomAlgorithm
Source§impl TryFrom<i32> for RandomAlgorithm
impl TryFrom<i32> for RandomAlgorithm
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
Source§fn try_from(value: i32) -> Result<RandomAlgorithm, UnknownEnumValue>
fn try_from(value: i32) -> Result<RandomAlgorithm, UnknownEnumValue>
Performs the conversion.
impl Copy for RandomAlgorithm
impl Eq for RandomAlgorithm
impl StructuralPartialEq for RandomAlgorithm
Auto Trait Implementations§
impl Freeze for RandomAlgorithm
impl RefUnwindSafe for RandomAlgorithm
impl Send for RandomAlgorithm
impl Sync for RandomAlgorithm
impl Unpin for RandomAlgorithm
impl UnwindSafe for RandomAlgorithm
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)