pub struct BindingReference { /* private fields */ }Expand description
A fully qualified semantic binding reference, such as wikidata:item_id_property.
Implementations§
Source§impl BindingReference
impl BindingReference
pub fn new(extension_id: ExtensionId, key: BindingKey) -> Self
pub fn extension_id(&self) -> &ExtensionId
pub fn key(&self) -> &BindingKey
Sourcepub const fn from_static(extension_id: &'static str, key: &'static str) -> Self
pub const fn from_static(extension_id: &'static str, key: &'static str) -> Self
Constructs a canonical binding reference from static literals.
Invalid literals cause compilation to fail when used in a constant.
Trait Implementations§
Source§impl Clone for BindingReference
impl Clone for BindingReference
Source§fn clone(&self) -> BindingReference
fn clone(&self) -> BindingReference
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 BindingReference
impl Debug for BindingReference
Source§impl Display for BindingReference
impl Display for BindingReference
impl Eq for BindingReference
Source§impl FromStr for BindingReference
impl FromStr for BindingReference
Source§impl Hash for BindingReference
impl Hash for BindingReference
Source§impl Ord for BindingReference
impl Ord for BindingReference
Source§fn cmp(&self, other: &BindingReference) -> Ordering
fn cmp(&self, other: &BindingReference) -> Ordering
1.21.0 (const: unstable) · 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 BindingReference
impl PartialEq for BindingReference
Source§impl PartialOrd for BindingReference
impl PartialOrd for BindingReference
impl StructuralPartialEq for BindingReference
Auto Trait Implementations§
impl Freeze for BindingReference
impl RefUnwindSafe for BindingReference
impl Send for BindingReference
impl Sync for BindingReference
impl Unpin for BindingReference
impl UnsafeUnpin for BindingReference
impl UnwindSafe for BindingReference
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.