Struct mini_functions::common::Constants
source · pub struct Constants {
pub constants: Vec<Constant>,
}
Expand description
Re-exported Constants
struct from cmn providing math/crypto constants.
The Constants
structure holds mathematical and hash constants.
Fields§
§constants: Vec<Constant>
A vector of constants.
Implementations§
source§impl Constants
impl Constants
sourcepub fn constants(&self) -> &Vec<Constant>
pub fn constants(&self) -> &Vec<Constant>
Returns a vector of tuples with the constant name and its value.
Examples
extern crate cmn;
use cmn::constants::Constants;
let constants = Constants::new();
assert!(constants.constants().len() >= 9);
Trait Implementations§
source§impl Serialize for Constants
impl Serialize for Constants
source§fn 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
Auto Trait Implementations§
impl RefUnwindSafe for Constants
impl Send for Constants
impl Sync for Constants
impl Unpin for Constants
impl UnwindSafe for Constants
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian()
.