Struct graphific::Vertex [−][src]
Implementations
impl<K, V> Vertex<K, V> where
K: Key,
V: Value,
[src]
K: Key,
V: Value,
pub fn new(key: K) -> Self
[src]
Create a new vertex with the default value.
pub fn with_value(key: K, value: V) -> Self
[src]
Create a new vertex with a value.
pub fn key(&self) -> &K
[src]
Get the key of the vertex.
pub fn value(&self) -> &V
[src]
Get the value of the vertex.
pub fn set_value(&mut self, value: V)
[src]
Set the value of the vertex.
Trait Implementations
impl<K: Clone, V: Clone> Clone for Vertex<K, V> where
K: Key,
V: Value,
[src]
K: Key,
V: Value,
impl<K: Copy, V: Copy> Copy for Vertex<K, V> where
K: Key,
V: Value,
[src]
K: Key,
V: Value,
impl<K: Debug, V: Debug> Debug for Vertex<K, V> where
K: Key,
V: Value,
[src]
K: Key,
V: Value,
impl<K, V> Eq for Vertex<K, V> where
K: Key,
V: Value,
[src]
K: Key,
V: Value,
impl<K, V> Hash for Vertex<K, V> where
K: Key,
V: Value,
[src]
K: Key,
V: Value,
fn hash<H: Hasher>(&self, state: &mut H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<K, V> Ord for Vertex<K, V> where
K: Key,
V: Value,
[src]
K: Key,
V: Value,
fn cmp(&self, other: &Self) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl<K, V> PartialEq<Vertex<K, V>> for Vertex<K, V> where
K: Key,
V: Value,
[src]
K: Key,
V: Value,
impl<K, V> PartialOrd<Vertex<K, V>> for Vertex<K, V> where
K: Key,
V: Value,
[src]
K: Key,
V: Value,
Auto Trait Implementations
impl<K, V> RefUnwindSafe for Vertex<K, V> where
K: RefUnwindSafe,
V: RefUnwindSafe,
[src]
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<K, V> Send for Vertex<K, V> where
K: Send,
V: Send,
[src]
K: Send,
V: Send,
impl<K, V> Sync for Vertex<K, V> where
K: Sync,
V: Sync,
[src]
K: Sync,
V: Sync,
impl<K, V> Unpin for Vertex<K, V> where
K: Unpin,
V: Unpin,
[src]
K: Unpin,
V: Unpin,
impl<K, V> UnwindSafe for Vertex<K, V> where
K: UnwindSafe,
V: UnwindSafe,
[src]
K: UnwindSafe,
V: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,