pub enum DirectionalPosition {
    Top,
    Center,
    Bottom,
    Right,
    Left,
}Expand description
List of all SVG directional positions.
Variants§
Top
The top position.
Center
The center position.
Bottom
The bottom position.
Right
The right position.
Left
The left position.
Implementations§
Source§impl DirectionalPosition
 
impl DirectionalPosition
Sourcepub fn is_horizontal(&self) -> bool
 
pub fn is_horizontal(&self) -> bool
Checks whether the value can be a horizontal position.
Sourcepub fn is_vertical(&self) -> bool
 
pub fn is_vertical(&self) -> bool
Checks whether the value can be a vertical position.
Trait Implementations§
Source§impl Clone for DirectionalPosition
 
impl Clone for DirectionalPosition
Source§fn clone(&self) -> DirectionalPosition
 
fn clone(&self) -> DirectionalPosition
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 DirectionalPosition
 
impl Debug for DirectionalPosition
Source§impl From<DirectionalPosition> for Length
 
impl From<DirectionalPosition> for Length
Source§fn from(value: DirectionalPosition) -> Self
 
fn from(value: DirectionalPosition) -> Self
Converts to this type from the input type.
Source§impl FromStr for DirectionalPosition
 
impl FromStr for DirectionalPosition
Source§impl PartialEq for DirectionalPosition
 
impl PartialEq for DirectionalPosition
impl Copy for DirectionalPosition
impl Eq for DirectionalPosition
impl StructuralPartialEq for DirectionalPosition
Auto Trait Implementations§
impl Freeze for DirectionalPosition
impl RefUnwindSafe for DirectionalPosition
impl Send for DirectionalPosition
impl Sync for DirectionalPosition
impl Unpin for DirectionalPosition
impl UnwindSafe for DirectionalPosition
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