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 duplicate 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
impl Copy for ForeignBehaviorInstanceId
impl Eq for ForeignBehaviorInstanceId
impl StructuralPartialEq for ForeignBehaviorInstanceId
Auto Trait Implementations§
impl Freeze for ForeignBehaviorInstanceId
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