Struct i_slint_core::items::PropertyAnimation
source · [−]#[repr(C)]pub struct PropertyAnimation {
pub delay: i32,
pub duration: i32,
pub iteration_count: f32,
pub easing: EasingCurve,
}
Expand description
The implementation of the PropertyAnimation
element
Fields
delay: i32
duration: i32
iteration_count: f32
easing: EasingCurve
Implementations
sourceimpl PropertyAnimation
impl PropertyAnimation
sourcepub const FIELD_OFFSETS: PropertyAnimationFieldsOffsets = {
trait PropertyAnimationMustNotImplDrop { }
impl PropertyAnimationMustNotImplDrop for T where
T: ::core::ops::Drop {
}
impl PropertyAnimationMustNotImplDrop for PropertyAnimation { }
struct __MustNotImplUnpin<'__dummy_lifetime>(i32, i32, f32,
crate::animations::EasingCurve,
::core::marker::PhantomData<&'__dummy_lifetime ()>);
impl <'__dummy_lifetime> Unpin for PropertyAnimation where
__MustNotImplUnpin: Unpin {
}
let mut len = 0usize;
PropertyAnimationFieldsOffsets{delay:
{
let align = ::core::mem::align_of::();
let len_rounded_up =
len.wrapping_add(align).wrapping_sub(1) &
!align.wrapping_sub(1);
len = len_rounded_up + ::core::mem::size_of::();
unsafe {
const_field_offset::FieldOffset::new_from_offset_pinned(len_rounded_up)
}
},
duration:
{
let align = ::core::mem::align_of::();
let len_rounded_up =
len.wrapping_add(align).wrapping_sub(1) &
!align.wrapping_sub(1);
len = len_rounded_up + ::core::mem::size_of::();
unsafe {
const_field_offset::FieldOffset::new_from_offset_pinned(len_rounded_up)
}
},
iteration_count:
{
let align = ::core::mem::align_of::();
let len_rounded_up =
len.wrapping_add(align).wrapping_sub(1) &
!align.wrapping_sub(1);
len = len_rounded_up + ::core::mem::size_of::();
unsafe {
const_field_offset::FieldOffset::new_from_offset_pinned(len_rounded_up)
}
},
easing:
{
let align =
::core::mem::align_of::();
let len_rounded_up =
len.wrapping_add(align).wrapping_sub(1) &
!align.wrapping_sub(1);
len =
len_rounded_up +
::core::mem::size_of::();
unsafe {
const_field_offset::FieldOffset::new_from_offset_pinned(len_rounded_up)
}
},}
}
pub const FIELD_OFFSETS: PropertyAnimationFieldsOffsets = {
trait PropertyAnimationMustNotImplDrop { }
impl PropertyAnimationMustNotImplDrop for T where
T: ::core::ops::Drop {
}
impl PropertyAnimationMustNotImplDrop for PropertyAnimation { }
struct __MustNotImplUnpin<'__dummy_lifetime>(i32, i32, f32,
crate::animations::EasingCurve,
::core::marker::PhantomData<&'__dummy_lifetime ()>);
impl <'__dummy_lifetime> Unpin for PropertyAnimation where
__MustNotImplUnpin: Unpin {
}
let mut len = 0usize;
PropertyAnimationFieldsOffsets{delay:
{
let align = ::core::mem::align_of::();
let len_rounded_up =
len.wrapping_add(align).wrapping_sub(1) &
!align.wrapping_sub(1);
len = len_rounded_up + ::core::mem::size_of::();
unsafe {
const_field_offset::FieldOffset::new_from_offset_pinned(len_rounded_up)
}
},
duration:
{
let align = ::core::mem::align_of::();
let len_rounded_up =
len.wrapping_add(align).wrapping_sub(1) &
!align.wrapping_sub(1);
len = len_rounded_up + ::core::mem::size_of::();
unsafe {
const_field_offset::FieldOffset::new_from_offset_pinned(len_rounded_up)
}
},
iteration_count:
{
let align = ::core::mem::align_of::();
let len_rounded_up =
len.wrapping_add(align).wrapping_sub(1) &
!align.wrapping_sub(1);
len = len_rounded_up + ::core::mem::size_of::();
unsafe {
const_field_offset::FieldOffset::new_from_offset_pinned(len_rounded_up)
}
},
easing:
{
let align =
::core::mem::align_of::();
let len_rounded_up =
len.wrapping_add(align).wrapping_sub(1) &
!align.wrapping_sub(1);
len =
len_rounded_up +
::core::mem::size_of::();
unsafe {
const_field_offset::FieldOffset::new_from_offset_pinned(len_rounded_up)
}
},}
}
Return a struct containing the offset of for the fields of this struct
Trait Implementations
sourceimpl Clone for PropertyAnimation
impl Clone for PropertyAnimation
sourcefn clone(&self) -> PropertyAnimation
fn clone(&self) -> PropertyAnimation
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for PropertyAnimation
impl Debug for PropertyAnimation
sourceimpl Default for PropertyAnimation
impl Default for PropertyAnimation
impl<'__dummy_lifetime> Unpin for PropertyAnimation where
__MustNotImplUnpin<'__dummy_lifetime>: Unpin,
Auto Trait Implementations
impl RefUnwindSafe for PropertyAnimation
impl Send for PropertyAnimation
impl Sync for PropertyAnimation
impl UnwindSafe for PropertyAnimation
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more