pub struct AttributeBinding {
pub variables: (u32, u32),
pub source_attribute: Aid,
}
Expand description
Describes variables whose possible values are given by an attribute.
Fields§
§variables: (u32, u32)
The variables this binding talks about.
source_attribute: Aid
The name of a globally known attribute backing this binding.
Trait Implementations§
Source§impl AsBinding for AttributeBinding
impl AsBinding for AttributeBinding
Source§fn binds(&self, variable: u32) -> Option<usize>
fn binds(&self, variable: u32) -> Option<usize>
Iff the binding has opinions about the given variable, this will
return the offset, otherwise None.
Source§fn ready_to_extend(&self, prefix: &dyn AsBinding) -> Option<u32>
fn ready_to_extend(&self, prefix: &dyn AsBinding) -> Option<u32>
Returns an optional variable by which this binding could
extend the given prefix.
Source§fn required_to_extend(
&self,
prefix: &dyn AsBinding,
target: u32,
) -> Option<Option<u32>>
fn required_to_extend( &self, prefix: &dyn AsBinding, target: u32, ) -> Option<Option<u32>>
Returns an optional variable which must be bound by the prefix
in order for this binding to extend the prefix. If None, then
this binding can never be used to extend the prefix to the
specified variable (e.g. because it doesn’t even bind it).
Source§impl Clone for AttributeBinding
impl Clone for AttributeBinding
Source§fn clone(&self) -> AttributeBinding
fn clone(&self) -> AttributeBinding
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 AttributeBinding
impl Debug for AttributeBinding
Source§impl<'de> Deserialize<'de> for AttributeBinding
impl<'de> Deserialize<'de> for AttributeBinding
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 Hash for AttributeBinding
impl Hash for AttributeBinding
Source§impl Ord for AttributeBinding
impl Ord for AttributeBinding
Source§fn cmp(&self, other: &AttributeBinding) -> Ordering
fn cmp(&self, other: &AttributeBinding) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for AttributeBinding
impl PartialEq for AttributeBinding
Source§impl PartialOrd for AttributeBinding
impl PartialOrd for AttributeBinding
Source§impl Serialize for AttributeBinding
impl Serialize for AttributeBinding
impl Eq for AttributeBinding
impl StructuralPartialEq for AttributeBinding
Auto Trait Implementations§
impl Freeze for AttributeBinding
impl RefUnwindSafe for AttributeBinding
impl Send for AttributeBinding
impl Sync for AttributeBinding
impl Unpin for AttributeBinding
impl UnwindSafe for AttributeBinding
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