[−][src]Struct pui_core::scalar::OpaqueScalar
Implementations
impl<S: ScalarAllocator> OpaqueScalar<S>
[src]
pub unsafe fn new(scalar: S::Scalar) -> Self
[src]
Create a new OpaqueScalar
Safety
- You must have goteen this scalar from
OpaqueScalar::into_inner
- You must create at most 1
OpaqueScalar
from thisscalar
pub fn into_inner(self) -> S::Scalar
[src]
Get the underlying scalar from OpaqueScalar
Trait Implementations
impl<A: ScalarAllocator> Eq for OpaqueScalar<A>
[src]
impl<A: ScalarAllocator> Hash for OpaqueScalar<A> where
A::Scalar: Hash,
[src]
A::Scalar: Hash,
pub fn hash<H: Hasher>(&self, state: &mut H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<A: ScalarAllocator> Ord for OpaqueScalar<A> where
A::Scalar: Ord,
[src]
A::Scalar: Ord,
pub fn cmp(&self, other: &Self) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl<A: ScalarAllocator> PartialEq<OpaqueScalar<A>> for OpaqueScalar<A>
[src]
pub fn eq(&self, other: &Self) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<A: ScalarAllocator> PartialOrd<OpaqueScalar<A>> for OpaqueScalar<A> where
A::Scalar: PartialOrd,
[src]
A::Scalar: PartialOrd,
Auto Trait Implementations
impl<S> RefUnwindSafe for OpaqueScalar<S> where
<S as ScalarAllocator>::Scalar: RefUnwindSafe,
[src]
<S as ScalarAllocator>::Scalar: RefUnwindSafe,
impl<S> Send for OpaqueScalar<S> where
<S as ScalarAllocator>::Scalar: Send,
[src]
<S as ScalarAllocator>::Scalar: Send,
impl<S> Sync for OpaqueScalar<S> where
<S as ScalarAllocator>::Scalar: Sync,
[src]
<S as ScalarAllocator>::Scalar: Sync,
impl<S> Unpin for OpaqueScalar<S> where
<S as ScalarAllocator>::Scalar: Unpin,
[src]
<S as ScalarAllocator>::Scalar: Unpin,
impl<S> UnwindSafe for OpaqueScalar<S> where
<S as ScalarAllocator>::Scalar: UnwindSafe,
[src]
<S as ScalarAllocator>::Scalar: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,