Struct rs_graph::attributed::GraphAttrs[][src]

pub struct GraphAttrs<'a, G, Gx, Nx, Ex> where
    G: 'a + GraphType<'a>,
    Gx: 'a,
    Nx: 'a,
    Ex: 'a, 
{ /* fields omitted */ }
👎 Deprecated since 0.17.0:

use rs-graph-derive crate instead

Accessor for graph attributes.

Trait Implementations

impl<'a, G, Gx, Nx, Ex> Attributes for GraphAttrs<'a, G, Gx, Nx, Ex> where
    G: IndexGraph<'a>, 
[src]

type Node = G::Node

👎 Deprecated since 0.17.0:

use rs-graph-derive crate instead

Type of nodes of the associated graph.

type Edge = G::Edge

👎 Deprecated since 0.17.0:

use rs-graph-derive crate instead

Type of edges of the associated graph.

type GraphAttr = Gx

👎 Deprecated since 0.17.0:

use rs-graph-derive crate instead

Type of graph attributes.

type NodeAttr = Nx

👎 Deprecated since 0.17.0:

use rs-graph-derive crate instead

Type of node attributes.

type EdgeAttr = Ex

👎 Deprecated since 0.17.0:

use rs-graph-derive crate instead

Type of edge attributes.

fn attr(&self) -> &Self::GraphAttr[src]

👎 Deprecated since 0.17.0:

use rs-graph-derive crate instead

Return the graph attributes.

fn attr_mut(&mut self) -> &mut Self::GraphAttr[src]

👎 Deprecated since 0.17.0:

use rs-graph-derive crate instead

Return the graph attributes.

fn node(&self, u: Self::Node) -> &Self::NodeAttr[src]

👎 Deprecated since 0.17.0:

use rs-graph-derive crate instead

Return the attributes of a node.

fn node_mut(&mut self, u: Self::Node) -> &mut Self::NodeAttr[src]

👎 Deprecated since 0.17.0:

use rs-graph-derive crate instead

Return the attributes of a node.

fn edge(&self, e: Self::Edge) -> &Self::EdgeAttr[src]

👎 Deprecated since 0.17.0:

use rs-graph-derive crate instead

Return the attributes of an edge.

fn edge_mut(&mut self, e: Self::Edge) -> &mut Self::EdgeAttr[src]

👎 Deprecated since 0.17.0:

use rs-graph-derive crate instead

Return the attributes of an edge.

impl<'a, G, Gx, Nx, Ex> Deref for GraphAttrs<'a, G, Gx, Nx, Ex> where
    G: IndexGraph<'a>, 
[src]

type Target = Gx

The resulting type after dereferencing.

fn deref(&self) -> &Gx[src]

Dereferences the value.

impl<'a, G, Gx, Nx, Ex> DerefMut for GraphAttrs<'a, G, Gx, Nx, Ex> where
    G: IndexGraph<'a>, 
[src]

fn deref_mut(&mut self) -> &mut Gx[src]

Mutably dereferences the value.

Auto Trait Implementations

impl<'a, G, Gx, Nx, Ex> RefUnwindSafe for GraphAttrs<'a, G, Gx, Nx, Ex> where
    Ex: RefUnwindSafe,
    G: RefUnwindSafe,
    Gx: RefUnwindSafe,
    Nx: RefUnwindSafe

impl<'a, G, Gx, Nx, Ex> Send for GraphAttrs<'a, G, Gx, Nx, Ex> where
    Ex: Send,
    G: Sync,
    Gx: Send,
    Nx: Send

impl<'a, G, Gx, Nx, Ex> Sync for GraphAttrs<'a, G, Gx, Nx, Ex> where
    Ex: Sync,
    G: Sync,
    Gx: Sync,
    Nx: Sync

impl<'a, G, Gx, Nx, Ex> Unpin for GraphAttrs<'a, G, Gx, Nx, Ex>

impl<'a, G, Gx, Nx, Ex> !UnwindSafe for GraphAttrs<'a, G, Gx, Nx, Ex>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

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]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.