pub struct LightboxItem { /* private fields */ }Expand description
One picture of an ImageLightbox.
Implementations§
Source§impl LightboxItem
impl LightboxItem
Sourcepub fn new(image: ImageData) -> LightboxItem
pub fn new(image: ImageData) -> LightboxItem
A picture with no caption.
Sourcepub fn caption(self, caption: impl Into<String>) -> LightboxItem
pub fn caption(self, caption: impl Into<String>) -> LightboxItem
What it says under the picture.
Trait Implementations§
Source§impl Clone for LightboxItem
impl Clone for LightboxItem
Source§fn clone(&self) -> LightboxItem
fn clone(&self) -> LightboxItem
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 moreAuto Trait Implementations§
impl Freeze for LightboxItem
impl RefUnwindSafe for LightboxItem
impl Send for LightboxItem
impl Sync for LightboxItem
impl Unpin for LightboxItem
impl UnsafeUnpin for LightboxItem
impl UnwindSafe for LightboxItem
Blanket Implementations§
impl<T> AutoreleaseSafe for Twhere
T: ?Sized,
impl<T> AutoreleaseSafe for Twhere
T: ?Sized,
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