pub trait TryFromRaw: AsRaw {
    // Required method
    fn ct_try_from_raw(raw: Self::Raw) -> CtOption<Self>;

    // Provided method
    fn try_from_raw(raw: Self::Raw) -> Option<Self> { ... }
}
Expand description

Constructs a point/scalar from its backend library representation

Required Methods§

source

fn ct_try_from_raw(raw: Self::Raw) -> CtOption<Self>

Wraps raw value (constant time)

Returns None if value doesn’t meet wrapper constraints

Provided Methods§

source

fn try_from_raw(raw: Self::Raw) -> Option<Self>

Wraps raw value

Returns None if value doesn’t meet wrapper constraints

Object Safety§

This trait is not object safe.

Implementors§