#[repr(C)]pub struct ObjectHeader {
pub id: URID,
pub otype: URID,
}Expand description
Header of an object.
The important field is otype, which contains the URID of the class this object is an instance
of. However, the id is only described as “URID, or 0 for blank” by the standard and therefore
should be set to zero.
This struct is also repr(C) and is used to interpret objects from raw data.
Fields§
§id: URID§otype: URIDTrait Implementations§
Source§impl ArrayAtomHeader for ObjectHeader
impl ArrayAtomHeader for ObjectHeader
Source§type InitializationParameter = (u32, u32)
type InitializationParameter = (u32, u32)
Type of the parameter for
initialize.Source§unsafe fn initialize<'a, W, T>(
writer: &mut W,
(id, otype): &(URID, URID),
_urids: &mut CachedMap,
) -> Result<(), ()>where
T: 'static + Sized + Copy,
ArrayAtomBody<Self, T>: AtomBody,
W: WritingFrame<'a> + WritingFrameExt<'a, ArrayAtomBody<Self, T>>,
unsafe fn initialize<'a, W, T>(
writer: &mut W,
(id, otype): &(URID, URID),
_urids: &mut CachedMap,
) -> Result<(), ()>where
T: 'static + Sized + Copy,
ArrayAtomBody<Self, T>: AtomBody,
W: WritingFrame<'a> + WritingFrameExt<'a, ArrayAtomBody<Self, T>>,
Write out the array atom header. Read more
Auto Trait Implementations§
impl Freeze for ObjectHeader
impl RefUnwindSafe for ObjectHeader
impl Send for ObjectHeader
impl Sync for ObjectHeader
impl Unpin for ObjectHeader
impl UnwindSafe for ObjectHeader
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