pub enum ObjectPosition {
Bottom,
Center,
Left,
LeftBottom,
LeftTop,
Right,
RightBottom,
RightTop,
Top,
}
Expand description
Object position values
Variants§
Bottom
Bottom object position
Center
Center object position
Left
Left object position
LeftBottom
Left bottom object position
LeftTop
Left top object position
Right
Right object position
RightBottom
Right bottom object position
RightTop
Right top object position
Top
Top object position
Implementations§
Source§impl ObjectPosition
impl ObjectPosition
pub fn to_class_name(&self) -> String
pub fn to_css_value(&self) -> String
Trait Implementations§
Source§impl Clone for ObjectPosition
impl Clone for ObjectPosition
Source§fn clone(&self) -> ObjectPosition
fn clone(&self) -> ObjectPosition
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 ObjectPosition
impl Debug for ObjectPosition
Source§impl<'de> Deserialize<'de> for ObjectPosition
impl<'de> Deserialize<'de> for ObjectPosition
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 Hash for ObjectPosition
impl Hash for ObjectPosition
Source§impl PartialEq for ObjectPosition
impl PartialEq for ObjectPosition
Source§impl Serialize for ObjectPosition
impl Serialize for ObjectPosition
impl Copy for ObjectPosition
impl Eq for ObjectPosition
impl StructuralPartialEq for ObjectPosition
Auto Trait Implementations§
impl Freeze for ObjectPosition
impl RefUnwindSafe for ObjectPosition
impl Send for ObjectPosition
impl Sync for ObjectPosition
impl Unpin for ObjectPosition
impl UnwindSafe for ObjectPosition
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<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.