pub struct Carousel { /* private fields */ }Expand description
Carousel — a scrollable content strip with snap-to-item behavior.
Implementations§
Source§impl Carousel
impl Carousel
Sourcepub const fn orientation(self, o: CarouselOrientation) -> Self
pub const fn orientation(self, o: CarouselOrientation) -> Self
Set the carousel orientation.
Sourcepub const fn item_basis(self, basis: f32) -> Self
pub const fn item_basis(self, basis: f32) -> Self
Set the fraction of container width each item occupies (e.g. 0.33 = 3 visible items).
Show or hide prev/next navigation buttons.
Auto Trait Implementations§
impl Freeze for Carousel
impl RefUnwindSafe for Carousel
impl Send for Carousel
impl Sync for Carousel
impl Unpin for Carousel
impl UnsafeUnpin for Carousel
impl UnwindSafe for Carousel
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