pub struct OpaqueScalar<S: ScalarAllocator>(/* private fields */);Implementations§
Source§impl<S: ScalarAllocator> OpaqueScalar<S>
impl<S: ScalarAllocator> OpaqueScalar<S>
Sourcepub unsafe fn new(scalar: S::Scalar) -> Self
pub unsafe fn new(scalar: S::Scalar) -> Self
Create a new OpaqueScalar
§Safety
- You must have goteen this scalar from
OpaqueScalar::into_inner - You must create at most 1
OpaqueScalarfrom thisscalar
Sourcepub fn into_inner(self) -> S::Scalar
pub fn into_inner(self) -> S::Scalar
Get the underlying scalar from OpaqueScalar
Trait Implementations§
Source§impl<A: ScalarAllocator> Hash for OpaqueScalar<A>
impl<A: ScalarAllocator> Hash for OpaqueScalar<A>
Source§impl<A: ScalarAllocator> Ord for OpaqueScalar<A>
impl<A: ScalarAllocator> Ord for OpaqueScalar<A>
Source§impl<A: ScalarAllocator> PartialEq for OpaqueScalar<A>
impl<A: ScalarAllocator> PartialEq for OpaqueScalar<A>
Source§impl<A: ScalarAllocator> PartialOrd for OpaqueScalar<A>where
A::Scalar: PartialOrd,
impl<A: ScalarAllocator> PartialOrd for OpaqueScalar<A>where
A::Scalar: PartialOrd,
impl<A: ScalarAllocator> Eq for OpaqueScalar<A>
Auto Trait Implementations§
impl<S> Freeze for OpaqueScalar<S>
impl<S> RefUnwindSafe for OpaqueScalar<S>
impl<S> Send for OpaqueScalar<S>
impl<S> Sync for OpaqueScalar<S>
impl<S> Unpin for OpaqueScalar<S>
impl<S> UnwindSafe for OpaqueScalar<S>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more