Struct flow_graph::PortDefinition
source · #[non_exhaustive]pub struct PortDefinition {
pub name: String,
pub index: PortIndex,
}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.name: String
§index: PortIndex
Implementations§
Trait Implementations§
source§impl Clone for PortDefinition
impl Clone for PortDefinition
source§fn clone(&self) -> PortDefinition
fn clone(&self) -> PortDefinition
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 PortDefinition
impl Debug for PortDefinition
source§impl Default for PortDefinition
impl Default for PortDefinition
source§fn default() -> PortDefinition
fn default() -> PortDefinition
Returns the “default value” for a type. Read more
source§impl Display for PortDefinition
impl Display for PortDefinition
source§impl PartialEq for PortDefinition
impl PartialEq for PortDefinition
source§fn eq(&self, other: &PortDefinition) -> bool
fn eq(&self, other: &PortDefinition) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for PortDefinition
impl StructuralEq for PortDefinition
impl StructuralPartialEq for PortDefinition
Auto Trait Implementations§
impl RefUnwindSafe for PortDefinition
impl Send for PortDefinition
impl Sync for PortDefinition
impl Unpin for PortDefinition
impl UnwindSafe for PortDefinition
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