pub struct OwnedObjectReference {
pub reference: ObjectReference,
pub owner: Owner,
}Expand description
An ObjectReference paired with the owner the object has at that version.
Not a wire type: this is how transaction effects report an object they touched, since a reference alone does not say who owns it.
Fields§
§reference: ObjectReferenceThe object’s reference.
owner: OwnerThe owner the object has at that version.
Implementations§
Source§impl OwnedObjectReference
impl OwnedObjectReference
Sourcepub const fn new(reference: ObjectReference, owner: Owner) -> Self
pub const fn new(reference: ObjectReference, owner: Owner) -> Self
Pairs a reference with the owner the object has at that version.
Trait Implementations§
Source§impl Clone for OwnedObjectReference
impl Clone for OwnedObjectReference
Source§fn clone(&self) -> OwnedObjectReference
fn clone(&self) -> OwnedObjectReference
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 OwnedObjectReference
Source§impl Debug for OwnedObjectReference
impl Debug for OwnedObjectReference
Source§impl Display for OwnedObjectReference
impl Display for OwnedObjectReference
impl Eq for OwnedObjectReference
Source§impl Hash for OwnedObjectReference
impl Hash for OwnedObjectReference
Source§impl Ord for OwnedObjectReference
impl Ord for OwnedObjectReference
Source§fn cmp(&self, other: &OwnedObjectReference) -> Ordering
fn cmp(&self, other: &OwnedObjectReference) -> 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for OwnedObjectReference
impl PartialEq for OwnedObjectReference
Source§impl PartialOrd for OwnedObjectReference
impl PartialOrd for OwnedObjectReference
impl StructuralPartialEq for OwnedObjectReference
Auto Trait Implementations§
impl Freeze for OwnedObjectReference
impl RefUnwindSafe for OwnedObjectReference
impl Send for OwnedObjectReference
impl Sync for OwnedObjectReference
impl Unpin for OwnedObjectReference
impl UnsafeUnpin for OwnedObjectReference
impl UnwindSafe for OwnedObjectReference
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