#[repr(i32)]pub enum ResizeRoundMode {
kHALF_UP = 0,
kHALF_DOWN = 1,
kFLOOR = 2,
kCEIL = 3,
}Expand description
ResizeRoundMode
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 (const: unstable) · 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 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 PartialEq for ResizeRoundMode
impl PartialEq for ResizeRoundMode
Source§fn eq(&self, other: &ResizeRoundMode) -> bool
fn eq(&self, other: &ResizeRoundMode) -> bool
Tests for
self and other values to be equal, and is used by ==.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 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