pub enum PythonPasteSource {
Image(Box<Image>),
Scalar(i64),
Float(f64),
Components(Vec<i64>),
String(String),
Invalid,
}Expand description
Host-neutral source input for the Python Image.paste wrapper.
Variants§
Image(Box<Image>)
Another image object.
Scalar(i64)
A scalar color value before mode-specific validation.
Float(f64)
A floating-point scalar, accepted by Pillow for F images.
Components(Vec<i64>)
A tuple/list color before mode-specific arity validation.
String(String)
A Pillow color string before mode-specific conversion.
Invalid
A value that is neither an image nor a supported color value.
Trait Implementations§
Source§impl Clone for PythonPasteSource
impl Clone for PythonPasteSource
Auto Trait Implementations§
impl !RefUnwindSafe for PythonPasteSource
impl !UnwindSafe for PythonPasteSource
impl Freeze for PythonPasteSource
impl Send for PythonPasteSource
impl Sync for PythonPasteSource
impl Unpin for PythonPasteSource
impl UnsafeUnpin for PythonPasteSource
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