pub struct Catalyst(/* private fields */);Expand description
A lightweight catalyst descriptor.
Implementations§
Source§impl Catalyst
impl Catalyst
Sourcepub fn new(label: &str) -> Result<Catalyst, ReactionValidationError>
pub fn new(label: &str) -> Result<Catalyst, ReactionValidationError>
Creates a catalyst descriptor.
§Errors
Returns ReactionValidationError::EmptyCatalystLabel when label is empty after
trimming.
Sourcepub fn into_string(self) -> String
pub fn into_string(self) -> String
Consumes the descriptor and returns the owned text.
Trait Implementations§
Source§impl From<Catalyst> for ReactionCondition
impl From<Catalyst> for ReactionCondition
Source§fn from(catalyst: Catalyst) -> ReactionCondition
fn from(catalyst: Catalyst) -> ReactionCondition
Converts to this type from the input type.
Source§impl Ord for Catalyst
impl Ord for Catalyst
Source§impl PartialOrd for Catalyst
impl PartialOrd for Catalyst
impl Eq for Catalyst
impl StructuralPartialEq for Catalyst
Auto Trait Implementations§
impl Freeze for Catalyst
impl RefUnwindSafe for Catalyst
impl Send for Catalyst
impl Sync for Catalyst
impl Unpin for Catalyst
impl UnsafeUnpin for Catalyst
impl UnwindSafe for Catalyst
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