pub struct ObjectId(pub i64);Expand description
A locally unique identifier for an Amf3 object
See the comment on Value::Amf3ObjectReference for details
Tuple Fields§
§0: i64Implementations§
Source§impl ObjectId
impl ObjectId
Sourcepub const INVALID: Self
pub const INVALID: Self
An invalid object id
Use this when the id of an object can’t be known or will never need to be referenced (e.g. amf0)
Unlike valid object id’s, multiple objects with an INVALID id are explicitly allowed
Attempting to write a reference to an invalid object id is illegal and may error
Attempting to write an object with an invalid object id is allowed, but it cannot be referenced later
Trait Implementations§
impl Copy for ObjectId
impl Eq for ObjectId
Source§impl Ord for ObjectId
impl Ord for ObjectId
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 PartialOrd for ObjectId
impl PartialOrd for ObjectId
impl StructuralPartialEq for ObjectId
Auto Trait Implementations§
impl Freeze for ObjectId
impl RefUnwindSafe for ObjectId
impl Send for ObjectId
impl Sync for ObjectId
impl Unpin for ObjectId
impl UnsafeUnpin for ObjectId
impl UnwindSafe for ObjectId
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