#[non_exhaustive]#[repr(u32)]pub enum ggml_scale_mode {
GGML_SCALE_MODE_NEAREST = 0,
GGML_SCALE_MODE_BILINEAR = 1,
GGML_SCALE_MODE_BICUBIC = 2,
GGML_SCALE_MODE_COUNT = 3,
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
GGML_SCALE_MODE_NEAREST = 0
GGML_SCALE_MODE_BILINEAR = 1
GGML_SCALE_MODE_BICUBIC = 2
GGML_SCALE_MODE_COUNT = 3
Trait Implementations§
Source§impl Clone for ggml_scale_mode
impl Clone for ggml_scale_mode
Source§fn clone(&self) -> ggml_scale_mode
fn clone(&self) -> ggml_scale_mode
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 moreimpl Copy for ggml_scale_mode
Source§impl Debug for ggml_scale_mode
impl Debug for ggml_scale_mode
impl Eq for ggml_scale_mode
Source§impl Hash for ggml_scale_mode
impl Hash for ggml_scale_mode
Source§impl PartialEq for ggml_scale_mode
impl PartialEq for ggml_scale_mode
Source§fn eq(&self, other: &ggml_scale_mode) -> bool
fn eq(&self, other: &ggml_scale_mode) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ggml_scale_mode
Auto Trait Implementations§
impl Freeze for ggml_scale_mode
impl RefUnwindSafe for ggml_scale_mode
impl Send for ggml_scale_mode
impl Sync for ggml_scale_mode
impl Unpin for ggml_scale_mode
impl UnsafeUnpin for ggml_scale_mode
impl UnwindSafe for ggml_scale_mode
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