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
NoneCan neither sign nor verify signatures (cheapest to create, useful for cases not involving signatures, such as creating keys from slices)
SignOnlyCan sign but not verify signatures
VerifyOnlyCan verify but not create signatures
FullCan verify and create signatures
Trait Implementations
impl PartialEq for ContextFlag[src]
impl PartialEq for ContextFlagfn eq(&self, other: &ContextFlag) -> bool[src]
fn eq(&self, other: &ContextFlag) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> bool1.0.0
[src]This method tests for !=.
impl Eq for ContextFlag[src]
impl Eq for ContextFlagimpl Copy for ContextFlag[src]
impl Copy for ContextFlagimpl Clone for ContextFlag[src]
impl Clone for ContextFlagfn clone(&self) -> ContextFlag[src]
fn clone(&self) -> ContextFlagReturns 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 ContextFlagfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Display for ContextFlag[src]
impl Display for ContextFlagAuto Trait Implementations
impl Send for ContextFlag
impl Send for ContextFlagimpl Sync for ContextFlag
impl Sync for ContextFlag