pub struct DeclarativeChannel { /* private fields */ }Expand description
A constraint channel backed by a declarative definition.
Implementations§
Source§impl DeclarativeChannel
impl DeclarativeChannel
Sourcepub fn new(definition: ConstraintDefinition) -> Self
pub fn new(definition: ConstraintDefinition) -> Self
Create a new declarative channel from a definition.
Sourcepub fn definition(&self) -> &ConstraintDefinition
pub fn definition(&self) -> &ConstraintDefinition
Get the underlying definition.
Sourcepub fn from_json(json: &str) -> KernelResult<Self>
pub fn from_json(json: &str) -> KernelResult<Self>
Parse a constraint definition from JSON.
Trait Implementations§
Source§impl ConstraintChannel for DeclarativeChannel
impl ConstraintChannel for DeclarativeChannel
Auto Trait Implementations§
impl Freeze for DeclarativeChannel
impl RefUnwindSafe for DeclarativeChannel
impl Send for DeclarativeChannel
impl Sync for DeclarativeChannel
impl Unpin for DeclarativeChannel
impl UnsafeUnpin for DeclarativeChannel
impl UnwindSafe for DeclarativeChannel
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