summaryrefslogtreecommitdiff
path: root/src/attributes/port_position.rs
diff options
context:
space:
mode:
authorseancarroll <seanc28@gmail.com>2021-01-07 22:47:41 -0600
committerseancarroll <seanc28@gmail.com>2021-01-07 22:47:41 -0600
commit4eb06140d996b1a5a6ac15578089ef9f61f95663 (patch)
tree22d21c0e8abb8ddbd16cfbe41afdf107bc981ac1 /src/attributes/port_position.rs
parentc95ff86e2c8fbdd8e0cf6550aadc7ffc676dcc16 (diff)
downloaddotavious-4eb06140d996b1a5a6ac15578089ef9f61f95663.zip
adding rustdocs
Diffstat (limited to 'src/attributes/port_position.rs')
-rw-r--r--src/attributes/port_position.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/attributes/port_position.rs b/src/attributes/port_position.rs
index a492b14..8900219 100644
--- a/src/attributes/port_position.rs
+++ b/src/attributes/port_position.rs
@@ -6,6 +6,7 @@ use std::borrow::Cow;
/// If Port is used, the corresponding node must either have record shape with one of its
/// fields having the given portname, or have an HTML-like label, one of whose components has a
/// PORT attribute set to portname.
+/// If no compass point is used with a portname, the default value is "_".
#[derive(Clone, PartialEq, Eq, Debug)]
pub enum PortPosition {
Port {
@@ -15,8 +16,6 @@ pub enum PortPosition {
Compass(CompassPoint),
}
-// TODO: AsRef vs this?
-// See https://github.com/Peternator7/strum/blob/96ee0a9a307ec7d1a39809fb59037bd4e11557cc/strum/src/lib.rs
impl<'a> DotString<'a> for PortPosition {
fn dot_string(&self) -> Cow<'a, str> {
match self {