pub enum ResizeMode {
Resize,
CropAndResize,
ResizeAndFill,
}
Expand description
How to resize the image for image-to-image generation
Variants§
Implementations§
Trait Implementations§
source§impl Clone for ResizeMode
impl Clone for ResizeMode
source§fn clone(&self) -> ResizeMode
fn clone(&self) -> ResizeMode
Returns a copy 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 ResizeMode
impl Debug for ResizeMode
source§impl Default for ResizeMode
impl Default for ResizeMode
source§impl<'de> Deserialize<'de> for ResizeMode
impl<'de> Deserialize<'de> for ResizeMode
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for ResizeMode
impl Display for ResizeMode
source§impl From<ResizeMode> for u32
impl From<ResizeMode> for u32
source§fn from(mode: ResizeMode) -> Self
fn from(mode: ResizeMode) -> Self
Converts to this type from the input type.
source§impl PartialEq<ResizeMode> for ResizeMode
impl PartialEq<ResizeMode> for ResizeMode
source§fn eq(&self, other: &ResizeMode) -> bool
fn eq(&self, other: &ResizeMode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ResizeMode
impl Serialize for ResizeMode
source§impl TryFrom<&str> for ResizeMode
impl TryFrom<&str> for ResizeMode
impl Copy for ResizeMode
impl Eq for ResizeMode
impl StructuralEq for ResizeMode
impl StructuralPartialEq for ResizeMode
Auto Trait Implementations§
impl RefUnwindSafe for ResizeMode
impl Send for ResizeMode
impl Sync for ResizeMode
impl Unpin for ResizeMode
impl UnwindSafe for ResizeMode
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<R, P> ReadPrimitive<R> for Pwhere
R: Read + ReadEndian<P>,
P: Default,
impl<R, P> ReadPrimitive<R> for Pwhere
R: Read + ReadEndian<P>,
P: Default,
source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian()
.