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: ForeignBehaviorInstanceId
Implementations
sourceimpl 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
sourceimpl Clone for ForeignBehaviorInstanceId
impl Clone for ForeignBehaviorInstanceId
sourcefn clone(&self) -> ForeignBehaviorInstanceId
fn clone(&self) -> ForeignBehaviorInstanceId
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 ForeignBehaviorInstanceId
impl Debug for ForeignBehaviorInstanceId
sourceimpl Hash for ForeignBehaviorInstanceId
impl Hash for ForeignBehaviorInstanceId
sourceimpl PartialEq<ForeignBehaviorInstanceId> for ForeignBehaviorInstanceId
impl PartialEq<ForeignBehaviorInstanceId> for ForeignBehaviorInstanceId
sourcefn 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 ==
. Read more
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
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