pub struct LocalImageSource {
pub path: PathBuf,
pub format: Option<ImageFormat>,
}Fields§
§path: PathBuf§format: Option<ImageFormat>Implementations§
Source§impl LocalImageSource
impl LocalImageSource
pub fn new(path: impl Into<PathBuf>) -> Self
pub fn with_format(self, format: ImageFormat) -> Self
Trait Implementations§
Source§impl Clone for LocalImageSource
impl Clone for LocalImageSource
Source§fn clone(&self) -> LocalImageSource
fn clone(&self) -> LocalImageSource
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 Debug for LocalImageSource
impl Debug for LocalImageSource
Source§impl From<LocalImageSource> for ImageSource
impl From<LocalImageSource> for ImageSource
Source§fn from(value: LocalImageSource) -> Self
fn from(value: LocalImageSource) -> Self
Converts to this type from the input type.
Source§impl PartialEq for LocalImageSource
impl PartialEq for LocalImageSource
Source§fn eq(&self, other: &LocalImageSource) -> bool
fn eq(&self, other: &LocalImageSource) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for LocalImageSource
impl StructuralPartialEq for LocalImageSource
Auto Trait Implementations§
impl Freeze for LocalImageSource
impl RefUnwindSafe for LocalImageSource
impl Send for LocalImageSource
impl Sync for LocalImageSource
impl Unpin for LocalImageSource
impl UnsafeUnpin for LocalImageSource
impl UnwindSafe for LocalImageSource
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