Enum libreda_pnr::db::Direction1D
pub enum Direction1D {
Low,
High,
}Expand description
Direction in one dimension.
Variants§
Implementations§
§impl Direction1D
impl Direction1D
pub fn reversed(self) -> Direction1D
pub fn reversed(self) -> Direction1D
Return the opposite direction.
Trait Implementations§
§impl Clone for Direction1D
impl Clone for Direction1D
§fn clone(&self) -> Direction1D
fn clone(&self) -> Direction1D
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 Direction1D
impl Debug for Direction1D
§impl<'de> Deserialize<'de> for Direction1D
impl<'de> Deserialize<'de> for Direction1D
§fn deserialize<__D>(
__deserializer: __D
) -> Result<Direction1D, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<Direction1D, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl From<Direction2D> for Direction1D
impl From<Direction2D> for Direction1D
§fn from(d2: Direction2D) -> Direction1D
fn from(d2: Direction2D) -> Direction1D
Downcast 2D direction to 1D direction by preserving the sign.
§impl Hash for Direction1D
impl Hash for Direction1D
§impl Ord for Direction1D
impl Ord for Direction1D
§impl PartialEq<Direction1D> for Direction1D
impl PartialEq<Direction1D> for Direction1D
§fn eq(&self, other: &Direction1D) -> bool
fn eq(&self, other: &Direction1D) -> bool
This method tests for
self and other values to be equal, and is used
by ==.§impl PartialOrd<Direction1D> for Direction1D
impl PartialOrd<Direction1D> for Direction1D
§fn partial_cmp(&self, other: &Direction1D) -> Option<Ordering>
fn partial_cmp(&self, other: &Direction1D) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read more§impl Serialize for Direction1D
impl Serialize for Direction1D
§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