pub struct BridgePartBook { /* private fields */ }Expand description
Registry of BRIDGE part-kind specifications.
Implementations§
Source§impl BridgePartBook
impl BridgePartBook
Sourcepub fn register(&mut self, spec: BridgePartSpec)
pub fn register(&mut self, spec: BridgePartSpec)
Registers a part spec, replacing any existing spec for the same kind.
Sourcepub fn spec(&self, kind: &Symbol) -> Option<&BridgePartSpec>
pub fn spec(&self, kind: &Symbol) -> Option<&BridgePartSpec>
Returns the registered spec for kind.
Sourcepub fn specs(&self) -> impl Iterator<Item = &BridgePartSpec>
pub fn specs(&self) -> impl Iterator<Item = &BridgePartSpec>
Returns all registered part specs.
Sourcepub fn require_registered(&self, kind: &Symbol) -> Result<&BridgePartSpec>
pub fn require_registered(&self, kind: &Symbol) -> Result<&BridgePartSpec>
Checks that kind is registered for decoding.
Trait Implementations§
Source§impl Clone for BridgePartBook
impl Clone for BridgePartBook
Source§fn clone(&self) -> BridgePartBook
fn clone(&self) -> BridgePartBook
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 BridgePartBook
impl Debug for BridgePartBook
Source§impl Default for BridgePartBook
impl Default for BridgePartBook
Source§fn default() -> BridgePartBook
fn default() -> BridgePartBook
Returns the “default value” for a type. Read more
impl Eq for BridgePartBook
Source§impl PartialEq for BridgePartBook
impl PartialEq for BridgePartBook
impl StructuralPartialEq for BridgePartBook
Auto Trait Implementations§
impl Freeze for BridgePartBook
impl RefUnwindSafe for BridgePartBook
impl Send for BridgePartBook
impl Sync for BridgePartBook
impl Unpin for BridgePartBook
impl UnsafeUnpin for BridgePartBook
impl UnwindSafe for BridgePartBook
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