pub struct GeometryDecl {Show 13 fields
pub span: Span,
pub name: String,
pub complex_kind: String,
pub satisfies: Option<String>,
pub manifold: Option<String>,
pub v_register: Option<u64>,
pub w_domain: Option<u64>,
pub metric: Option<String>,
pub metric_axes: Vec<String>,
pub cells_source: Option<String>,
pub operators: Vec<String>,
pub harboured_graphs: Vec<HarbouredGraphDecl>,
pub is_standalone_topology_sugar: bool,
}Expand description
A declarative geometry <Name> : <ComplexKind> { ... } harbouring $M \ge 1$ graphs.
Fields§
§span: Span§name: String§complex_kind: String§satisfies: Option<String>§manifold: Option<String>§v_register: Option<u64>§w_domain: Option<u64>§metric: Option<String>§metric_axes: Vec<String>§cells_source: Option<String>§operators: Vec<String>§harboured_graphs: Vec<HarbouredGraphDecl>§is_standalone_topology_sugar: boolImplementations§
Source§impl GeometryDecl
impl GeometryDecl
Sourcepub fn lower_to_invokes(&self) -> Vec<TopologyInvokeDescriptor>
pub fn lower_to_invokes(&self) -> Vec<TopologyInvokeDescriptor>
Lowers this GeometryDecl and its harboured graphs into deterministic
Topology.define_geometry, Topology.harbour_graph, and Poet.topology_bind descriptors.
Sourcepub fn lower_to_block(&self) -> Block
pub fn lower_to_block(&self) -> Block
Lowers this declaration to an AST Block of capability invoke statements.
Trait Implementations§
Source§impl Clone for GeometryDecl
impl Clone for GeometryDecl
Source§impl Debug for GeometryDecl
impl Debug for GeometryDecl
impl Eq for GeometryDecl
Source§impl PartialEq for GeometryDecl
impl PartialEq for GeometryDecl
impl StructuralPartialEq for GeometryDecl
Auto Trait Implementations§
impl Freeze for GeometryDecl
impl RefUnwindSafe for GeometryDecl
impl Send for GeometryDecl
impl Sync for GeometryDecl
impl Unpin for GeometryDecl
impl UnsafeUnpin for GeometryDecl
impl UnwindSafe for GeometryDecl
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.