pub struct SignatureRegistry { /* private fields */ }Expand description
Registry of predicate signatures
Implementations§
Source§impl SignatureRegistry
impl SignatureRegistry
pub fn new() -> Self
Sourcepub fn register(&mut self, signature: PredicateSignature)
pub fn register(&mut self, signature: PredicateSignature)
Register a new predicate signature
Sourcepub fn get(&self, name: &str) -> Option<&PredicateSignature>
pub fn get(&self, name: &str) -> Option<&PredicateSignature>
Look up a signature by predicate name
Sourcepub fn all(&self) -> &[PredicateSignature]
pub fn all(&self) -> &[PredicateSignature]
Get all registered signatures
Trait Implementations§
Source§impl Clone for SignatureRegistry
impl Clone for SignatureRegistry
Source§fn clone(&self) -> SignatureRegistry
fn clone(&self) -> SignatureRegistry
Returns a duplicate of the value. Read more
1.0.0 · 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 SignatureRegistry
impl Debug for SignatureRegistry
Source§impl Default for SignatureRegistry
impl Default for SignatureRegistry
Source§fn default() -> SignatureRegistry
fn default() -> SignatureRegistry
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SignatureRegistry
impl<'de> Deserialize<'de> for SignatureRegistry
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
Source§impl PartialEq for SignatureRegistry
impl PartialEq for SignatureRegistry
Source§impl Serialize for SignatureRegistry
impl Serialize for SignatureRegistry
impl StructuralPartialEq for SignatureRegistry
Auto Trait Implementations§
impl Freeze for SignatureRegistry
impl RefUnwindSafe for SignatureRegistry
impl Send for SignatureRegistry
impl Sync for SignatureRegistry
impl Unpin for SignatureRegistry
impl UnwindSafe for SignatureRegistry
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