[][src]Struct secp256kfun::marker::NonZero

pub struct NonZero;

Something marked with NonZero is guaranteed not to be 0.

Trait Implementations

impl<Z, S, T> ChangeMark<Point<T, S, Z>> for NonZero[src]

type Out = Option<Point<T, S, NonZero>>

The result type of marking T with Self

impl<Z, S> ChangeMark<Scalar<S, Z>> for NonZero[src]

type Out = Option<Scalar<S, NonZero>>

The result type of marking T with Self

impl Clone for NonZero[src]

impl Debug for NonZero[src]

impl<Z: ZeroChoice> DecideZero<Z> for NonZero[src]

type Out = Z

If both arguments are NonZero then Out will be NonZero, otherwise Zero.

impl Default for NonZero[src]

impl PartialEq<NonZero> for NonZero[src]

impl StructuralPartialEq for NonZero[src]

impl ZeroChoice for NonZero[src]

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Z, S, Y, SNew> ChangeMark<Point<Y, S, Z>> for SNew where
    SNew: Secrecy
[src]

type Out = Point<Y, SNew, Z>

The result type of marking T with Self

impl<Z, S, SNew> ChangeMark<Scalar<S, Z>> for SNew where
    SNew: Secrecy
[src]

type Out = Scalar<SNew, Z>

The result type of marking T with Self

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Mark for T[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.