pub enum ReferenceTransformBinding {
Static {
binding: PropertyBinding<LayoutTransform>,
},
Computed {
scale_from: Option<LayoutSize>,
vertical_flip: bool,
rotation: Rotation,
},
}
Variants§
Static
Standard reference frame which contains a precomputed transform.
Fields
§
binding: PropertyBinding<LayoutTransform>
Computed
Computed reference frame which dynamically calculates the transform based on the given parameters. The reference is the content size of the parent iframe, which is affected by snapping.
Trait Implementations§
Source§impl Clone for ReferenceTransformBinding
impl Clone for ReferenceTransformBinding
Source§fn clone(&self) -> ReferenceTransformBinding
fn clone(&self) -> ReferenceTransformBinding
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ReferenceTransformBinding
impl Debug for ReferenceTransformBinding
Source§impl Default for ReferenceTransformBinding
impl Default for ReferenceTransformBinding
Source§impl<'de> Deserialize<'de> for ReferenceTransformBinding
impl<'de> Deserialize<'de> for ReferenceTransformBinding
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Peek for ReferenceTransformBinding
impl Peek for ReferenceTransformBinding
Source§impl Poke for ReferenceTransformBinding
impl Poke for ReferenceTransformBinding
impl Copy for ReferenceTransformBinding
impl StructuralPartialEq for ReferenceTransformBinding
Auto Trait Implementations§
impl Freeze for ReferenceTransformBinding
impl RefUnwindSafe for ReferenceTransformBinding
impl Send for ReferenceTransformBinding
impl Sync for ReferenceTransformBinding
impl Unpin for ReferenceTransformBinding
impl UnwindSafe for ReferenceTransformBinding
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