Enum libreda_db::layout::prelude::REdgeOrientation
source · pub enum REdgeOrientation {
Horizontal,
Vertical,
}
Expand description
Orientation of a rectilinear edge.
Variants§
Implementations§
source§impl REdgeOrientation
impl REdgeOrientation
sourcepub fn other(&self) -> REdgeOrientation
pub fn other(&self) -> REdgeOrientation
Return the other orientation then self
.
sourcepub fn is_horizontal(self) -> bool
pub fn is_horizontal(self) -> bool
Check if the orientation is horizontal.
sourcepub fn is_vertical(self) -> bool
pub fn is_vertical(self) -> bool
Check if the orientation is vertical.
Trait Implementations§
source§impl Clone for REdgeOrientation
impl Clone for REdgeOrientation
source§fn clone(&self) -> REdgeOrientation
fn clone(&self) -> REdgeOrientation
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 REdgeOrientation
impl Debug for REdgeOrientation
source§impl<'de> Deserialize<'de> for REdgeOrientation
impl<'de> Deserialize<'de> for REdgeOrientation
source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<REdgeOrientation, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<REdgeOrientation, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Hash for REdgeOrientation
impl Hash for REdgeOrientation
source§impl PartialEq for REdgeOrientation
impl PartialEq for REdgeOrientation
source§fn eq(&self, other: &REdgeOrientation) -> bool
fn eq(&self, other: &REdgeOrientation) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for REdgeOrientation
impl Serialize for REdgeOrientation
source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for REdgeOrientation
impl Eq for REdgeOrientation
impl StructuralPartialEq for REdgeOrientation
Auto Trait Implementations§
impl Freeze for REdgeOrientation
impl RefUnwindSafe for REdgeOrientation
impl Send for REdgeOrientation
impl Sync for REdgeOrientation
impl Unpin for REdgeOrientation
impl UnwindSafe for REdgeOrientation
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> 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 more