Enum secp256k1::ContextFlag
source · [−]pub enum ContextFlag {
None,
SignOnly,
VerifyOnly,
Full,
}
Expand description
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
sourceimpl Clone for ContextFlag
impl Clone for ContextFlag
sourcefn clone(&self) -> ContextFlag
fn clone(&self) -> ContextFlag
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 ContextFlag
impl Debug for ContextFlag
sourceimpl Display for ContextFlag
impl Display for ContextFlag
sourceimpl PartialEq<ContextFlag> for ContextFlag
impl PartialEq<ContextFlag> for ContextFlag
impl Copy for ContextFlag
impl Eq for ContextFlag
impl StructuralEq for ContextFlag
impl StructuralPartialEq for ContextFlag
Auto Trait Implementations
impl RefUnwindSafe for ContextFlag
impl Send for ContextFlag
impl Sync for ContextFlag
impl Unpin for ContextFlag
impl UnwindSafe for ContextFlag
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub 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.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub 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