pub struct Trunc;Trait Implementations§
Source§impl<D: Dialect> FunctionFmt<D> for Trunc
impl<D: Dialect> FunctionFmt<D> for Trunc
fn base_function_name() -> &'static str
fn half_support() -> bool
fn function_name(elem: Elem<D>) -> String
fn format_unary<Input: Display>( f: &mut Formatter<'_>, input: Input, elem: Elem<D>, ) -> Result
Source§impl<D: Dialect> Unary<D> for Trunc
impl<D: Dialect> Unary<D> for Trunc
fn format_scalar<Input: Display>( f: &mut Formatter<'_>, input: Input, elem: Elem<D>, ) -> Result
fn can_optimize() -> bool
fn format( f: &mut Formatter<'_>, input: &Variable<D>, out: &Variable<D>, ) -> Result
fn unroll_vec( f: &mut Formatter<'_>, input: &Variable<D>, out: &Variable<D>, out_elem: Elem<D>, index: usize, ) -> Result
Auto Trait Implementations§
impl Freeze for Trunc
impl RefUnwindSafe for Trunc
impl Send for Trunc
impl Sync for Trunc
impl Unpin for Trunc
impl UnwindSafe for Trunc
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