Struct ark_api::behavior::ForeignBehaviorInstanceId
source · pub struct ForeignBehaviorInstanceId(pub ForeignBehaviorInstanceId);Expand description
A unique identifier of a couple comprising a local behavior type id within a behavior module as well as a local instance id.
Tuple Fields§
§0: ForeignBehaviorInstanceIdImplementations§
source§impl ForeignBehaviorInstanceId
impl ForeignBehaviorInstanceId
sourcepub fn pack(
type_id: LocalBehaviorTypeId,
instance_id: LocalBehaviorInstanceId
) -> Self
pub fn pack( type_id: LocalBehaviorTypeId, instance_id: LocalBehaviorInstanceId ) -> Self
Create a new instance id by packing a LocalBehaviorTypeId and LocalBehaviorInstanceId
sourcepub fn unpack(&self) -> (LocalBehaviorTypeId, LocalBehaviorInstanceId)
pub fn unpack(&self) -> (LocalBehaviorTypeId, LocalBehaviorInstanceId)
Unpack this id to retrieve the LocalBehaviorTypeId and LocalBehaviorInstanceId
Trait Implementations§
source§impl Clone for ForeignBehaviorInstanceId
impl Clone for ForeignBehaviorInstanceId
source§fn clone(&self) -> ForeignBehaviorInstanceId
fn clone(&self) -> ForeignBehaviorInstanceId
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for ForeignBehaviorInstanceId
impl Debug for ForeignBehaviorInstanceId
source§impl Hash for ForeignBehaviorInstanceId
impl Hash for ForeignBehaviorInstanceId
source§impl PartialEq<ForeignBehaviorInstanceId> for ForeignBehaviorInstanceId
impl PartialEq<ForeignBehaviorInstanceId> for ForeignBehaviorInstanceId
source§fn eq(&self, other: &ForeignBehaviorInstanceId) -> bool
fn eq(&self, other: &ForeignBehaviorInstanceId) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for ForeignBehaviorInstanceId
impl Eq for ForeignBehaviorInstanceId
impl StructuralEq for ForeignBehaviorInstanceId
impl StructuralPartialEq for ForeignBehaviorInstanceId
Auto Trait Implementations§
impl RefUnwindSafe for ForeignBehaviorInstanceId
impl Send for ForeignBehaviorInstanceId
impl Sync for ForeignBehaviorInstanceId
impl Unpin for ForeignBehaviorInstanceId
impl UnwindSafe for ForeignBehaviorInstanceId
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