Enum libreda_db::layout::prelude::REdgeOrientation
source · [−]pub enum REdgeOrientation {
Horizontal,
Vertical,
}
Expand description
Orientation of a rectilinear edge.
Variants
Horizontal
Horizontal edge.
Vertical
Vertical edge.
Implementations
sourceimpl 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
sourceimpl Clone for REdgeOrientation
impl Clone for REdgeOrientation
sourcefn clone(&self) -> REdgeOrientation
fn clone(&self) -> REdgeOrientation
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for REdgeOrientation
impl Debug for REdgeOrientation
sourceimpl<'de> Deserialize<'de> for REdgeOrientation
impl<'de> Deserialize<'de> for REdgeOrientation
sourcefn 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
sourceimpl Hash for REdgeOrientation
impl Hash for REdgeOrientation
sourceimpl PartialEq<REdgeOrientation> for REdgeOrientation
impl PartialEq<REdgeOrientation> for REdgeOrientation
sourceimpl Serialize for REdgeOrientation
impl Serialize for REdgeOrientation
sourcefn 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 StructuralEq for REdgeOrientation
impl StructuralPartialEq for REdgeOrientation
Auto Trait Implementations
impl RefUnwindSafe for REdgeOrientation
impl Send for REdgeOrientation
impl Sync for REdgeOrientation
impl Unpin for REdgeOrientation
impl UnwindSafe for REdgeOrientation
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more