[][src]Struct polyhorn_core::Topology

pub struct Topology<P: ?Sized> where
    P: Platform
{ /* fields omitted */ }

Implementations

impl<P: ?Sized> Topology<P> where
    P: Platform
[src]

pub fn new(element: Element<P>) -> Topology<P>[src]

pub fn element(&self) -> &Element<P>[src]

pub fn update(&mut self, element: Element<P>) -> Element<P>[src]

pub fn keys(&self) -> HashSet<Key>[src]

pub fn edge(&self, key: &Key) -> Option<&Rc<Instance<P>>>[src]

pub fn edges(&self) -> impl Iterator<Item = &Rc<Instance<P>>>[src]

pub fn add_edge(&mut self, key: Key, instance: Rc<Instance<P>>)[src]

pub fn remove_edge(&mut self, key: &Key) -> Option<Rc<Instance<P>>>[src]

Auto Trait Implementations

impl<P> !RefUnwindSafe for Topology<P>

impl<P> !Send for Topology<P>

impl<P> !Sync for Topology<P>

impl<P: ?Sized> Unpin for Topology<P> where
    <P as Platform>::Component: Unpin,
    <P as Platform>::ContainerID: Unpin

impl<P> !UnwindSafe for Topology<P>

Blanket Implementations

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

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

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

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

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

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.

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.