pub(crate) struct FrozenBufferLayout {
pub(crate) offsets: BufferOffsets,
byte_len: usize,
standalone_defaults: Box<[(ByteOffset, &'static DefaultValue)]>,
bindings: FrozenBufferBindings,
history: Box<[HistorySlotHandle]>,
fingerprint: LayoutFingerprint,
}Expand description
Immutable slot layout shared by a combat program and its runtime buffer.
Fields§
§offsets: BufferOffsets§byte_len: usize§standalone_defaults: Box<[(ByteOffset, &'static DefaultValue)]>§bindings: FrozenBufferBindings§history: Box<[HistorySlotHandle]>§fingerprint: LayoutFingerprintImplementations§
Source§impl FrozenBufferLayout
impl FrozenBufferLayout
pub(crate) const fn byte_len(&self) -> usize
pub(crate) const fn fingerprint(&self) -> LayoutFingerprint
pub(crate) fn history_handles(&self) -> &[HistorySlotHandle]
pub(crate) const fn bindings(&self) -> &FrozenBufferBindings
pub(crate) fn spell_handle(&self, key: SpellIdx) -> Option<SpellSlotHandle>
pub(crate) fn aura_handle(&self, key: AuraKey) -> Option<AuraSlotHandle>
pub(crate) fn cooldown_handle( &self, key: SpellIdx, ) -> Option<CooldownSlotHandle>
pub(crate) fn history_handle(&self, key: SpellIdx) -> Option<HistorySlotHandle>
pub(crate) fn resource_handle( &self, key: ResourceType, ) -> Option<ResourceSlotHandle>
pub(crate) fn unit_handle(&self, key: &str) -> Option<UnitSlotHandle>
pub(crate) fn talent_handle(&self, key: &str) -> Option<TalentSlotHandle>
pub(crate) fn freeze(offsets: BufferOffsets, byte_len: usize) -> Arc<Self>
pub(crate) fn standalone_defaults( &self, ) -> &[(ByteOffset, &'static DefaultValue)]
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FrozenBufferLayout
impl RefUnwindSafe for FrozenBufferLayout
impl Send for FrozenBufferLayout
impl Sync for FrozenBufferLayout
impl Unpin for FrozenBufferLayout
impl UnsafeUnpin for FrozenBufferLayout
impl UnwindSafe for FrozenBufferLayout
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more