pub enum ComponentAnchor {
TopLeading,
TopTrailing,
BottomLeading,
BottomTrailing,
Center,
Bottom,
Top,
Leading,
Trailing,
Absolute,
Fill,
}Expand description
Where a component is pinned, relative to the window/safe area.
Variants§
TopLeading
TopTrailing
BottomLeading
BottomTrailing
Center
Bottom
Centered against one edge of the safe area — for docking a nav
container as a bottom bar (Bottom) or a side rail (Leading /
Trailing). props.inset sets the gap from that edge.
Top
Leading
Trailing
Absolute
Position by props.x/props.y (CSS points from the top-left) —
for views synced to DOM element rects.
Fill
Cover the whole window, resizing with it (e.g. background images).
Trait Implementations§
Source§impl Clone for ComponentAnchor
impl Clone for ComponentAnchor
Source§fn clone(&self) -> ComponentAnchor
fn clone(&self) -> ComponentAnchor
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ComponentAnchor
Source§impl Debug for ComponentAnchor
impl Debug for ComponentAnchor
Source§impl Default for ComponentAnchor
impl Default for ComponentAnchor
Source§fn default() -> ComponentAnchor
fn default() -> ComponentAnchor
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ComponentAnchor
impl<'de> Deserialize<'de> for ComponentAnchor
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
impl Eq for ComponentAnchor
Source§impl PartialEq for ComponentAnchor
impl PartialEq for ComponentAnchor
Source§fn eq(&self, other: &ComponentAnchor) -> bool
fn eq(&self, other: &ComponentAnchor) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ComponentAnchor
impl Serialize for ComponentAnchor
impl StructuralPartialEq for ComponentAnchor
Auto Trait Implementations§
impl Freeze for ComponentAnchor
impl RefUnwindSafe for ComponentAnchor
impl Send for ComponentAnchor
impl Sync for ComponentAnchor
impl Unpin for ComponentAnchor
impl UnsafeUnpin for ComponentAnchor
impl UnwindSafe for ComponentAnchor
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<'de, D, R> CommandArg<'de, R> for Dwhere
D: Deserialize<'de>,
R: Runtime,
impl<'de, D, R> CommandArg<'de, R> for Dwhere
D: Deserialize<'de>,
R: Runtime,
Source§fn from_command(command: CommandItem<'de, R>) -> Result<D, InvokeError>
fn from_command(command: CommandItem<'de, R>) -> Result<D, InvokeError>
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.