#[non_exhaustive]pub struct Overlay {
pub image: Option<Image>,
pub animations: Vec<Animation>,
/* private fields */
}
Expand description
Overlay configuration.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.image: Option<Image>
Image overlay.
animations: Vec<Animation>
List of animations. The list should be chronological, without any time overlap.
Implementations§
Source§impl Overlay
impl Overlay
pub fn new() -> Self
Sourcepub fn set_or_clear_image<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_image<T>(self, v: Option<T>) -> Self
Sets or clears the value of image.
Sourcepub fn set_animations<T, V>(self, v: T) -> Self
pub fn set_animations<T, V>(self, v: T) -> Self
Sets the value of animations.
Trait Implementations§
impl StructuralPartialEq for Overlay
Auto Trait Implementations§
impl Freeze for Overlay
impl RefUnwindSafe for Overlay
impl Send for Overlay
impl Sync for Overlay
impl Unpin for Overlay
impl UnwindSafe for Overlay
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