pub struct Carousel {
pub ticks: Property<usize>,
pub cell_specs: Property<Vec<CarouselCell>>,
pub current_cell: Property<usize>,
pub current_cell_on_change: Property<bool>,
pub transition: Property<f64>,
}Fields§
§ticks: Property<usize>§cell_specs: Property<Vec<CarouselCell>>§current_cell: Property<usize>§current_cell_on_change: Property<bool>§transition: Property<f64>Implementations§
source§impl Carousel
impl Carousel
pub fn on_mount(&mut self, ctx: &NodeContext)
pub fn update(&mut self, _ctx: &NodeContext)
pub fn increment(&mut self, ctx: &NodeContext, _args: Event<Click>)
pub fn decrement(&mut self, ctx: &NodeContext, _args: Event<Click>)
Trait Implementations§
source§impl CoercionRules for Carousel
impl CoercionRules for Carousel
source§impl<'de> Deserialize<'de> for Carousel
impl<'de> Deserialize<'de> for Carousel
source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Carousel, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Carousel, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl HelperFunctions for Carousel
impl HelperFunctions for Carousel
source§impl Interpolatable for Carousel
impl Interpolatable for Carousel
fn interpolate(&self, _other: &Self, _t: f64) -> Self
source§impl Serialize for Carousel
impl Serialize for Carousel
source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
source§impl ToPaxValue for Carousel
impl ToPaxValue for Carousel
fn to_pax_value(self) -> PaxValue
impl ImplToFromPaxAny for Carousel
Auto Trait Implementations§
impl Freeze for Carousel
impl RefUnwindSafe for Carousel
impl Send for Carousel
impl Sync for Carousel
impl Unpin 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
source§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.