pub trait NamedObject<O>{
// Required methods
fn obj_flags(&self) -> u16;
fn desc(&self) -> &O::DescType;
fn desc_mut(&mut self) -> &mut O::DescType;
fn body(&self) -> &Option<ObjectMutBody<O::ContentType, O>>;
fn body_mut(&mut self) -> &mut Option<ObjectMutBody<O::ContentType, O>>;
fn signs(&self) -> &ObjectSigns;
fn signs_mut(&mut self) -> &mut ObjectSigns;
fn nonce(&self) -> &Option<u128>;
// Provided methods
fn body_expect(&self, msg: &str) -> &ObjectMutBody<O::ContentType, O> { ... }
fn body_mut_expect(
&mut self,
msg: &str,
) -> &mut ObjectMutBody<O::ContentType, O> { ... }
fn latest_update_time(&self) -> u64 { ... }
}Required Methods§
fn obj_flags(&self) -> u16
fn desc(&self) -> &O::DescType
fn desc_mut(&mut self) -> &mut O::DescType
fn body(&self) -> &Option<ObjectMutBody<O::ContentType, O>>
fn body_mut(&mut self) -> &mut Option<ObjectMutBody<O::ContentType, O>>
fn signs(&self) -> &ObjectSigns
fn signs_mut(&mut self) -> &mut ObjectSigns
fn nonce(&self) -> &Option<u128>
Provided Methods§
fn body_expect(&self, msg: &str) -> &ObjectMutBody<O::ContentType, O>
fn body_mut_expect( &mut self, msg: &str, ) -> &mut ObjectMutBody<O::ContentType, O>
fn latest_update_time(&self) -> u64
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".