pub struct DataLabel { /* private fields */ }
Expand description
Associates a name with a type, internal detail
Implementations§
Source§impl DataLabel
impl DataLabel
pub fn new(name: impl Into<String>) -> Self
pub const fn new_const(name: &'static str) -> Self
Sourcepub const fn new_with_type_name(
name: &'static str,
type_name: &'static str,
) -> Self
pub const fn new_with_type_name( name: &'static str, type_name: &'static str, ) -> Self
Type names are included to make error messages more meaningful. They make no semantic difference.
Sourcepub const fn new_blank() -> Self
pub const fn new_blank() -> Self
A blank datalabel is a placeholder used for a connection between nodes with no associated data
pub fn inner(&self) -> Option<&str>
Trait Implementations§
Source§impl Ord for DataLabel
impl Ord for DataLabel
Source§impl PartialOrd for DataLabel
impl PartialOrd for DataLabel
impl Eq for DataLabel
Auto Trait Implementations§
impl Freeze for DataLabel
impl RefUnwindSafe for DataLabel
impl Send for DataLabel
impl Sync for DataLabel
impl Unpin for DataLabel
impl UnwindSafe for DataLabel
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<T> DowncastEq for T
impl<T> DowncastEq for T
fn downcast_eq(&self, other: &(dyn Any + 'static)) -> bool
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.