pub struct Thumbnails { /* private fields */ }Expand description
A read-only view of the thumbnail entries the build segment holds: the asset-name-to-key map, and the PNG bytes each key addresses.
Reading is best effort throughout. An absent, unreadable, or foreign
segment opens as None and a key that resolves to nothing reads as None,
which costs a consumer its previews and never more than that.
Implementations§
Source§impl Thumbnails
impl Thumbnails
Sourcepub fn open() -> Option<Self>
pub fn open() -> Option<Self>
Open the anchored build segment. None when nothing anchored one, when
the running binary cannot be identified, or when the segment holds no
thumbnail set (a deleted cache/ reads this way).
Sourcepub fn names(&self) -> &[(String, String)]
pub fn names(&self) -> &[(String, String)]
Asset name paired with the key of its thumbnail, in bake order.
Auto Trait Implementations§
impl !Freeze for Thumbnails
impl RefUnwindSafe for Thumbnails
impl Send for Thumbnails
impl Sync for Thumbnails
impl Unpin for Thumbnails
impl UnsafeUnpin for Thumbnails
impl UnwindSafe for Thumbnails
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
impl<S, T> Duplex<S> for Twhere
T: FromSample<S> + ToSample<S>,
Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
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> ⓘ
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