Enum libreda_db::layout::prelude::REdgeOrientation
pub enum REdgeOrientation {
Horizontal,
Vertical,
}
Expand description
Orientation of a rectilinear edge.
Variants§
Implementations§
§impl REdgeOrientation
impl REdgeOrientation
pub fn other(&self) -> REdgeOrientation
pub fn other(&self) -> REdgeOrientation
Return the other orientation then self
.
pub fn is_horizontal(self) -> bool
pub fn is_horizontal(self) -> bool
Check if the orientation is horizontal.
pub fn is_vertical(self) -> bool
pub fn is_vertical(self) -> bool
Check if the orientation is vertical.
Trait Implementations§
§impl Clone for REdgeOrientation
impl Clone for REdgeOrientation
§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 more§impl Debug for REdgeOrientation
impl Debug for REdgeOrientation
§impl<'de> Deserialize<'de> for REdgeOrientation
impl<'de> Deserialize<'de> for REdgeOrientation
§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
§impl Hash for REdgeOrientation
impl Hash for REdgeOrientation
§impl PartialEq<REdgeOrientation> for REdgeOrientation
impl PartialEq<REdgeOrientation> for REdgeOrientation
§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 ==
.§impl Serialize for REdgeOrientation
impl Serialize for REdgeOrientation
§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