pub struct HostObjectBinding { /* private fields */ }Expand description
Portable reference from a host document to one production-scoped object.
Implementations§
Source§impl HostObjectBinding
impl HostObjectBinding
Sourcepub fn new(production_id: ProductionId, object: ObjectRef) -> Result<Self>
pub fn new(production_id: ProductionId, object: ObjectRef) -> Result<Self>
Creates a binding from its authoritative identity tuple.
§Errors
Returns an error when a production object does not match the binding’s containing production identity.
Sourcepub const fn production_id(self) -> ProductionId
pub const fn production_id(self) -> ProductionId
Returns the production that scopes the referenced object identity.
Trait Implementations§
Source§impl Clone for HostObjectBinding
impl Clone for HostObjectBinding
Source§fn clone(&self) -> HostObjectBinding
fn clone(&self) -> HostObjectBinding
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 moreimpl Copy for HostObjectBinding
Source§impl Debug for HostObjectBinding
impl Debug for HostObjectBinding
Source§impl Display for HostObjectBinding
impl Display for HostObjectBinding
impl Eq for HostObjectBinding
Source§impl FromStr for HostObjectBinding
impl FromStr for HostObjectBinding
Source§impl Hash for HostObjectBinding
impl Hash for HostObjectBinding
Source§impl Ord for HostObjectBinding
impl Ord for HostObjectBinding
Source§fn cmp(&self, other: &HostObjectBinding) -> Ordering
fn cmp(&self, other: &HostObjectBinding) -> 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 HostObjectBinding
impl PartialEq for HostObjectBinding
Source§fn eq(&self, other: &HostObjectBinding) -> bool
fn eq(&self, other: &HostObjectBinding) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for HostObjectBinding
impl PartialOrd for HostObjectBinding
impl StructuralPartialEq for HostObjectBinding
Auto Trait Implementations§
impl Freeze for HostObjectBinding
impl RefUnwindSafe for HostObjectBinding
impl Send for HostObjectBinding
impl Sync for HostObjectBinding
impl Unpin for HostObjectBinding
impl UnsafeUnpin for HostObjectBinding
impl UnwindSafe for HostObjectBinding
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