pub struct Scalar<A, IT, OT> { /* private fields */ }
Implementations§
Source§impl<A, T: CType> Scalar<A, T, T>
impl<A, T: CType> Scalar<A, T, T>
pub fn add(access: A, scalar: T) -> Self
pub fn div(access: A, scalar: T) -> Self
pub fn log(access: A, scalar: T) -> Self
pub fn mul(access: A, scalar: T) -> Self
pub fn pow(access: A, scalar: T) -> Self
pub fn rem(access: A, scalar: T) -> Self
pub fn sub(access: A, scalar: T) -> Self
Source§impl<A, T> Scalar<A, T, u8>
impl<A, T> Scalar<A, T, u8>
pub fn and(access: A, scalar: T) -> Selfwhere
T: CType,
pub fn or(access: A, scalar: T) -> Selfwhere
T: CType,
pub fn xor(access: A, scalar: T) -> Selfwhere
T: CType,
pub fn eq(access: A, scalar: T) -> Selfwhere
T: PartialEq,
pub fn ge(access: A, scalar: T) -> Selfwhere
T: PartialOrd,
pub fn gt(access: A, scalar: T) -> Selfwhere
T: PartialOrd,
pub fn le(access: A, scalar: T) -> Selfwhere
T: PartialOrd,
pub fn lt(access: A, scalar: T) -> Selfwhere
T: PartialOrd,
pub fn ne(access: A, scalar: T) -> Selfwhere
T: PartialEq,
Trait Implementations§
Auto Trait Implementations§
impl<A, IT, OT> Freeze for Scalar<A, IT, OT>
impl<A, IT, OT> RefUnwindSafe for Scalar<A, IT, OT>where
A: RefUnwindSafe,
IT: RefUnwindSafe,
impl<A, IT, OT> Send for Scalar<A, IT, OT>
impl<A, IT, OT> Sync for Scalar<A, IT, OT>
impl<A, IT, OT> Unpin for Scalar<A, IT, OT>
impl<A, IT, OT> UnwindSafe for Scalar<A, IT, OT>where
A: UnwindSafe,
IT: UnwindSafe,
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more