[−][src]Enum livesplit_core::CachedImageId
With a Cached Image ID you can track image changes. It starts with an uncached state and then gets updated with the images provided to it. It can be reset at any point in order to force a change to be detected.
Variants
Uncached
The initial uncached state.
NoImage
The last image observed either was missing or contained no data.
Image(usize)
The last image had actual data and the ID stored here.
Methods
impl CachedImageId
[src]
pub fn update_with<'i>(&mut self, image: Option<&'i Image>) -> Option<&'i str>
[src]
Updates the cached image ID based on the optional image provided to this method. If a change is observed the Data URL representing the image's data is returned. An empty string is returned when a transition to no image or no image data is observed.
pub fn reset(&mut self)
[src]
Resets the state of the cached image ID to uncached.
Trait Implementations
impl Copy for CachedImageId
[src]
impl PartialEq<CachedImageId> for CachedImageId
[src]
fn eq(&self, other: &CachedImageId) -> bool
[src]
fn ne(&self, other: &CachedImageId) -> bool
[src]
impl Clone for CachedImageId
[src]
fn clone(&self) -> CachedImageId
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Default for CachedImageId
[src]
Auto Trait Implementations
impl Send for CachedImageId
impl Sync for CachedImageId
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
D: AdaptFrom<S, Swp, Dwp, T>,
Dwp: WhitePoint,
Swp: WhitePoint,
T: Component + Float,
[src]
D: AdaptFrom<S, Swp, Dwp, T>,
Dwp: WhitePoint,
Swp: WhitePoint,
T: Component + Float,
fn adapt_into_using<M>(self, method: M) -> D where
M: TransformMatrix<Swp, Dwp, T>,
[src]
M: TransformMatrix<Swp, Dwp, T>,
fn adapt_into(self) -> D
[src]
Convert the source color to the destination color using the bradford method by default Read more
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
Sets value
as a parameter of self
.