#[repr(i32)]pub enum ResizeRoundMode {
kHALF_UP = 0,
kHALF_DOWN = 1,
kFLOOR = 2,
kCEIL = 3,
}Expand description
! ! \enum ResizeRoundMode ! ! \brief The rounding mode for nearest neighbor resize. ! ! \see IResizeLayer::setNearestRounding() !
Variants§
kHALF_UP = 0
! Round half up.
kHALF_DOWN = 1
! Round half down.
kFLOOR = 2
! Round to floor.
kCEIL = 3
! Round to ceil.
Trait Implementations§
Source§impl Clone for ResizeRoundMode
impl Clone for ResizeRoundMode
Source§fn clone(&self) -> ResizeRoundMode
fn clone(&self) -> ResizeRoundMode
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl ExternType for ResizeRoundMode
impl ExternType for ResizeRoundMode
Source§impl Hash for ResizeRoundMode
impl Hash for ResizeRoundMode
Source§impl PartialEq for ResizeRoundMode
impl PartialEq for ResizeRoundMode
impl Eq for ResizeRoundMode
impl StructuralPartialEq for ResizeRoundMode
impl UniquePtrTarget for ResizeRoundMode
impl VectorElement for ResizeRoundMode
impl WeakPtrTarget for ResizeRoundMode
Auto Trait Implementations§
impl Freeze for ResizeRoundMode
impl RefUnwindSafe for ResizeRoundMode
impl Send for ResizeRoundMode
impl Sync for ResizeRoundMode
impl Unpin for ResizeRoundMode
impl UnwindSafe for ResizeRoundMode
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