pub struct FloatingStyles {
pub position: Strategy,
pub top: String,
pub left: String,
pub transform: Option<String>,
pub will_change: Option<String>,
}Expand description
CSS styles to apply to the floating element to position it.
Fields§
§position: Strategy§top: String§left: String§transform: Option<String>§will_change: Option<String>Implementations§
Source§impl FloatingStyles
impl FloatingStyles
pub fn style_position(&self) -> String
pub fn style_top(&self) -> String
pub fn style_left(&self) -> String
pub fn style_transform(&self) -> Option<String>
pub fn style_will_change(&self) -> Option<String>
Trait Implementations§
Source§impl Clone for FloatingStyles
impl Clone for FloatingStyles
Source§fn clone(&self) -> FloatingStyles
fn clone(&self) -> FloatingStyles
Returns a duplicate 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 FloatingStyles
impl Debug for FloatingStyles
Source§impl Display for FloatingStyles
impl Display for FloatingStyles
Source§impl IntoStyle for FloatingStyles
impl IntoStyle for FloatingStyles
Source§type AsyncOutput = FloatingStyles
type AsyncOutput = FloatingStyles
The type after all async data have resolved.
Source§type State = (Element, FloatingStyles)
type State = (Element, FloatingStyles)
The view state retained between building and rebuilding.
Source§type Cloneable = FloatingStyles
type Cloneable = FloatingStyles
An equivalent value that can be cloned.
Source§type CloneableOwned = FloatingStyles
type CloneableOwned = FloatingStyles
An equivalent value that can be cloned and is
'static.Source§fn hydrate<const FROM_SERVER: bool>(self, el: &Element) -> Self::State
fn hydrate<const FROM_SERVER: bool>(self, el: &Element) -> Self::State
Adds interactivity as necessary, given DOM nodes that were created from HTML that has
either been rendered on the server, or cloned for a
<template>.Source§fn build(self, el: &Element) -> Self::State
fn build(self, el: &Element) -> Self::State
Adds this style to the element during client-side rendering.
Source§fn into_cloneable(self) -> Self::Cloneable
fn into_cloneable(self) -> Self::Cloneable
Converts this to a cloneable type.
Source§fn into_cloneable_owned(self) -> Self::CloneableOwned
fn into_cloneable_owned(self) -> Self::CloneableOwned
Converts this to a cloneable, owned type.
Source§fn dry_resolve(&mut self)
fn dry_resolve(&mut self)
“Runs” the attribute without other side effects. For primitive types, this is a no-op. For
reactive types, this can be used to gather data about reactivity or about asynchronous data
that needs to be loaded.
Source§async fn resolve(self) -> Self::AsyncOutput
async fn resolve(self) -> Self::AsyncOutput
“Resolves” this into a type that is not waiting for any asynchronous data.
Source§impl PartialEq for FloatingStyles
impl PartialEq for FloatingStyles
impl StructuralPartialEq for FloatingStyles
Auto Trait Implementations§
impl Freeze for FloatingStyles
impl RefUnwindSafe for FloatingStyles
impl Send for FloatingStyles
impl Sync for FloatingStyles
impl Unpin for FloatingStyles
impl UnwindSafe for FloatingStyles
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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> SerializableKey for T
impl<T> SerializableKey for T
Source§impl<T> StorageAccess<T> for T
impl<T> StorageAccess<T> for T
Source§fn as_borrowed(&self) -> &T
fn as_borrowed(&self) -> &T
Borrows the value.
Source§fn into_taken(self) -> T
fn into_taken(self) -> T
Takes the value.