pub struct NodeKitRegistry { /* private fields */ }Expand description
Registry for reusable node kits.
Implementations§
Source§impl NodeKitRegistry
impl NodeKitRegistry
pub fn new() -> Self
pub fn builtin() -> Self
pub fn register(&mut self, manifest: NodeKitManifest) -> &mut Self
pub fn manifest(&self, key: &NodeKitKey) -> Option<&NodeKitManifest>
pub fn manifest_for_kind(&self, kind: &NodeKindKey) -> Option<&NodeKitManifest>
pub fn manifests(&self) -> impl Iterator<Item = &NodeKitManifest>
pub fn node_registry(&self) -> NodeRegistry
pub fn recipe_for_kind(&self, kind: &NodeKindKey) -> Option<&NodeSchema>
pub fn layout_hints_for_kind( &self, kind: &NodeKindKey, ) -> Option<&NodeKitLayoutHints>
pub fn fixture_graph( &self, kit_key: &NodeKitKey, fixture_key: &str, ) -> Result<Graph, NodeKitFixtureError>
Trait Implementations§
Source§impl Clone for NodeKitRegistry
impl Clone for NodeKitRegistry
Source§fn clone(&self) -> NodeKitRegistry
fn clone(&self) -> NodeKitRegistry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NodeKitRegistry
impl Debug for NodeKitRegistry
Source§impl Default for NodeKitRegistry
impl Default for NodeKitRegistry
Source§fn default() -> NodeKitRegistry
fn default() -> NodeKitRegistry
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for NodeKitRegistry
impl RefUnwindSafe for NodeKitRegistry
impl Send for NodeKitRegistry
impl Sync for NodeKitRegistry
impl Unpin for NodeKitRegistry
impl UnsafeUnpin for NodeKitRegistry
impl UnwindSafe for NodeKitRegistry
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