Struct secp256kfun::marker::NonZero
source · [−]pub struct NonZero;
Expand description
Something marked with NonZero
is guaranteed not to be 0.
Trait Implementations
sourceimpl<Z, S, T> ChangeMark<Point<T, S, Z>> for NonZero
impl<Z, S, T> ChangeMark<Point<T, S, Z>> for NonZero
sourceimpl<Z, S> ChangeMark<Scalar<S, Z>> for NonZero
impl<Z, S> ChangeMark<Scalar<S, Z>> for NonZero
sourceimpl<Z: ZeroChoice> DecideZero<Z> for NonZero
impl<Z: ZeroChoice> DecideZero<Z> for NonZero
type Out = Z
type Out = Z
If both arguments are NonZero
then Out
will be NonZero
, otherwise Zero
.
impl Copy for NonZero
impl StructuralPartialEq for NonZero
impl ZeroChoice for NonZero
Auto Trait Implementations
impl RefUnwindSafe for NonZero
impl Send for NonZero
impl Sync for NonZero
impl Unpin for NonZero
impl UnwindSafe for NonZero
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Mark for T
impl<T> Mark for T
sourcefn mark<M>(self) -> <M as ChangeMark<T>>::Out where
M: ChangeMark<T>,
fn mark<M>(self) -> <M as ChangeMark<T>>::Out where
M: ChangeMark<T>,
Returns a new instance of the invocant that will be marked with M
. 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.
sourcefn clone_into(&self, target: &mut T)
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