#[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 Debug for ResizeRoundMode
impl Debug for ResizeRoundMode
Source§impl From<ResizeRoundMode> for ResizeRoundMode
impl From<ResizeRoundMode> for ResizeRoundMode
Source§fn from(value: ResizeRoundMode) -> Self
fn from(value: ResizeRoundMode) -> Self
Converts to this type from the input type.
Source§impl Hash for ResizeRoundMode
impl Hash for ResizeRoundMode
Source§impl Into<ResizeRoundMode> for ResizeRoundMode
impl Into<ResizeRoundMode> for ResizeRoundMode
Source§fn into(self) -> ResizeRoundMode
fn into(self) -> ResizeRoundMode
Converts this type into the (usually inferred) input type.
Source§impl Ord for ResizeRoundMode
impl Ord for ResizeRoundMode
Source§fn cmp(&self, other: &ResizeRoundMode) -> Ordering
fn cmp(&self, other: &ResizeRoundMode) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ResizeRoundMode
impl PartialEq for ResizeRoundMode
Source§impl PartialOrd for ResizeRoundMode
impl PartialOrd for ResizeRoundMode
impl Copy for ResizeRoundMode
impl Eq for ResizeRoundMode
impl StructuralPartialEq 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 UnsafeUnpin 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