pub enum FastDivmodExpand {
Fast {
divisor: <u32 as CubeType>::ExpandType,
multiplier: <u32 as CubeType>::ExpandType,
shift_right: <u32 as CubeType>::ExpandType,
},
PowerOfTwo {
shift: <u32 as CubeType>::ExpandType,
mask: <u32 as CubeType>::ExpandType,
},
Fallback {
divisor: <u32 as CubeType>::ExpandType,
},
}
Variants§
Fast
Fields
§
divisor: <u32 as CubeType>::ExpandType
§
multiplier: <u32 as CubeType>::ExpandType
§
shift_right: <u32 as CubeType>::ExpandType
PowerOfTwo
Fallback
Fields
§
divisor: <u32 as CubeType>::ExpandType
Implementations§
Source§impl FastDivmodExpand
impl FastDivmodExpand
pub fn __expand_div_method( self, scope: &mut Scope, dividend: <u32 as CubeType>::ExpandType, ) -> <u32 as CubeType>::ExpandType
pub fn __expand_modulo_method( self, scope: &mut Scope, dividend: <u32 as CubeType>::ExpandType, ) -> <u32 as CubeType>::ExpandType
pub fn __expand_div_mod_method( self, scope: &mut Scope, dividend: <u32 as CubeType>::ExpandType, ) -> <(u32, u32) as CubeType>::ExpandType
pub fn __expand_div( scope: &mut Scope, this: Self, dividend: <u32 as CubeType>::ExpandType, ) -> <u32 as CubeType>::ExpandType
pub fn __expand_modulo( scope: &mut Scope, this: Self, dividend: <u32 as CubeType>::ExpandType, ) -> <u32 as CubeType>::ExpandType
pub fn __expand_div_mod( scope: &mut Scope, this: Self, dividend: <u32 as CubeType>::ExpandType, ) -> <(u32, u32) as CubeType>::ExpandType
Trait Implementations§
Source§impl Clone for FastDivmodExpand
impl Clone for FastDivmodExpand
Source§impl CubeDebug for FastDivmodExpand
impl CubeDebug for FastDivmodExpand
Source§fn set_debug_name(&self, scope: &mut Scope, name: &'static str)
fn set_debug_name(&self, scope: &mut Scope, name: &'static str)
Set the debug name of this type’s expansion. Should do nothing for types that don’t appear
at runtime
Auto Trait Implementations§
impl Freeze for FastDivmodExpand
impl RefUnwindSafe for FastDivmodExpand
impl !Send for FastDivmodExpand
impl !Sync for FastDivmodExpand
impl Unpin for FastDivmodExpand
impl UnwindSafe for FastDivmodExpand
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