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 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 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)