Struct ValueSignature
pub struct ValueSignature {
kind: Option<ValueKind>,
optional: bool,
}Fields§
§kind: Option<ValueKind>§optional: boolImplementations§
§impl ValueSignature
impl ValueSignature
pub(crate) const fn from_value(value: &Value) -> Self
pub(crate) const fn is_optional(&self) -> bool
pub(crate) const fn force_optional(&mut self, optional: bool)
pub(crate) fn kind_matches(&self, other: &Self) -> bool
pub(crate) const fn optional_matches(&self, other: &Self) -> bool
pub(crate) fn matches(&self, other: &Self) -> bool
pub(crate) fn merge(&mut self, other: &Self) -> Result<()>
pub(crate) fn impose_requirement(&mut self, other: &Self) -> Result<()>
Trait Implementations§
§impl Clone for ValueSignature
impl Clone for ValueSignature
§fn clone(&self) -> ValueSignature
fn clone(&self) -> ValueSignature
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 more§impl Debug for ValueSignature
impl Debug for ValueSignature
Auto Trait Implementations§
impl Freeze for ValueSignature
impl RefUnwindSafe for ValueSignature
impl Send for ValueSignature
impl Sync for ValueSignature
impl Unpin for ValueSignature
impl UnwindSafe for ValueSignature
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