Struct ark_module::behavior::ForeignBehaviorInstanceId
source · pub struct ForeignBehaviorInstanceId(pub u64);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: u64Implementations§
source§impl ForeignBehaviorInstanceId
impl ForeignBehaviorInstanceId
sourcepub fn pack(
type_id: LocalBehaviorTypeId,
instance_id: LocalBehaviorInstanceId
) -> ForeignBehaviorInstanceId
pub fn pack(
type_id: LocalBehaviorTypeId,
instance_id: LocalBehaviorInstanceId
) -> ForeignBehaviorInstanceId
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 more