pub struct MaterializedThumbnailPath { /* private fields */ }Expand description
Path result of explicit fallback materialization into the personal cache.
Implementations§
Source§impl MaterializedThumbnailPath
impl MaterializedThumbnailPath
Sourcepub fn target_path(&self) -> &Path
pub fn target_path(&self) -> &Path
Returns the requested personal-cache target path.
Sourcepub fn source_path(&self) -> &Path
pub fn source_path(&self) -> &Path
Returns the source cache path used for materialization.
Sourcepub const fn requested_size(&self) -> ThumbnailSize
pub const fn requested_size(&self) -> ThumbnailSize
Returns the requested target size namespace.
Sourcepub const fn source_size(&self) -> ThumbnailSize
pub const fn source_size(&self) -> ThumbnailSize
Returns the source size namespace.
Sourcepub fn into_parts(self) -> MaterializedThumbnailPathParts
pub fn into_parts(self) -> MaterializedThumbnailPathParts
Splits this result into its owned target path, source path, size facts, and write status.
Trait Implementations§
Source§impl Clone for MaterializedThumbnailPath
impl Clone for MaterializedThumbnailPath
Source§fn clone(&self) -> MaterializedThumbnailPath
fn clone(&self) -> MaterializedThumbnailPath
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 MaterializedThumbnailPath
impl Debug for MaterializedThumbnailPath
Source§impl PartialEq for MaterializedThumbnailPath
impl PartialEq for MaterializedThumbnailPath
Source§fn eq(&self, other: &MaterializedThumbnailPath) -> bool
fn eq(&self, other: &MaterializedThumbnailPath) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for MaterializedThumbnailPath
impl StructuralPartialEq for MaterializedThumbnailPath
Auto Trait Implementations§
impl Freeze for MaterializedThumbnailPath
impl RefUnwindSafe for MaterializedThumbnailPath
impl Send for MaterializedThumbnailPath
impl Sync for MaterializedThumbnailPath
impl Unpin for MaterializedThumbnailPath
impl UnsafeUnpin for MaterializedThumbnailPath
impl UnwindSafe for MaterializedThumbnailPath
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more