pub struct FxGraph {
pub nodes: Vec<Node>,
pub links: Vec<Link>,
}Expand description
Das Dokument: Knotenliste + Kantengerüst, Reihenfolge gleichgültig.
Fields§
§nodes: Vec<Node>§links: Vec<Link>Implementations§
Source§impl FxGraph
impl FxGraph
pub fn new() -> Self
Sourcepub fn add(&mut self, module: Module) -> u32
pub fn add(&mut self, module: Module) -> u32
Knoten anhängen; die Id ist die nächste freie Stelle.
Sourcepub fn compile(&self) -> Result<Vec<Module>, GraphError>
pub fn compile(&self) -> Result<Vec<Module>, GraphError>
In die lineare Modulkette übersetzen — Kante für Kante vom Emitter aus, also kantentreu und unabhängig von der Speicherreihenfolge. Fehler lassen die Welt unverändert; die zurückgegebene Kette ist genau dann identisch, wenn das Gerüst identisch ist.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for FxGraph
impl<'de> Deserialize<'de> for FxGraph
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for FxGraph
Auto Trait Implementations§
impl Freeze for FxGraph
impl RefUnwindSafe for FxGraph
impl Send for FxGraph
impl Sync for FxGraph
impl Unpin for FxGraph
impl UnsafeUnpin for FxGraph
impl UnwindSafe for FxGraph
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