Enum secp256k1::ContextFlag [−][src]
pub enum ContextFlag { None, SignOnly, VerifyOnly, Full, }
Flags used to determine the capabilities of a Secp256k1
object;
the more capabilities, the more expensive it is to create.
Variants
None
Can neither sign nor verify signatures (cheapest to create, useful for cases not involving signatures, such as creating keys from slices)
SignOnly
Can sign but not verify signatures
VerifyOnly
Can verify but not create signatures
Full
Can verify and create signatures
Trait Implementations
impl PartialEq for ContextFlag
[src]
impl PartialEq for ContextFlag
fn eq(&self, other: &ContextFlag) -> bool
[src]
fn eq(&self, other: &ContextFlag) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]This method tests for !=
.
impl Eq for ContextFlag
[src]
impl Eq for ContextFlag
impl Copy for ContextFlag
[src]
impl Copy for ContextFlag
impl Clone for ContextFlag
[src]
impl Clone for ContextFlag
fn clone(&self) -> ContextFlag
[src]
fn clone(&self) -> ContextFlag
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for ContextFlag
[src]
impl Debug for ContextFlag
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Display for ContextFlag
[src]
impl Display for ContextFlag
Auto Trait Implementations
impl Send for ContextFlag
impl Send for ContextFlag
impl Sync for ContextFlag
impl Sync for ContextFlag