Struct ark_api::behavior_controller::AspectAddr
source · [−]#[repr(C)]pub struct AspectAddr { /* private fields */ }
Expand description
An aspect’s address, comprising of an aspect guid and an actor id
Implementations
sourceimpl AspectAddr
impl AspectAddr
sourcepub fn new(aspect_guid: u128, actor_id: u32) -> Result<AspectAddr, ErrorCode>
pub fn new(aspect_guid: u128, actor_id: u32) -> Result<AspectAddr, ErrorCode>
Construct a new AspectAddr
from the given aspect guid and actor id
Errors
Returns an ErrorCode::InvalidArguments
if the lower or higher u64
component
of the provided guid is an INVALID_GUID_COMPONENT
Trait Implementations
sourceimpl Clone for AspectAddr
impl Clone for AspectAddr
sourcefn clone(&self) -> AspectAddr
fn clone(&self) -> AspectAddr
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for AspectAddr
impl Debug for AspectAddr
sourceimpl PartialEq<AspectAddr> for AspectAddr
impl PartialEq<AspectAddr> for AspectAddr
sourcefn eq(&self, other: &AspectAddr) -> bool
fn eq(&self, other: &AspectAddr) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
impl Copy for AspectAddr
impl Eq for AspectAddr
impl Pod for AspectAddr
impl StructuralEq for AspectAddr
impl StructuralPartialEq for AspectAddr
Auto Trait Implementations
impl RefUnwindSafe for AspectAddr
impl Send for AspectAddr
impl Sync for AspectAddr
impl Unpin for AspectAddr
impl UnwindSafe for AspectAddr
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> CheckedBitPattern for T where
T: AnyBitPattern,
impl<T> CheckedBitPattern for T where
T: AnyBitPattern,
type Bits = T
type Bits = T
Self
must have the same layout as the specified Bits
except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern
. Read more
sourcefn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret bits
as &Self
. Read more