pub(crate) struct BorrowLedger {
next: u64,
held: Vec<Lease>,
}Expand description
Every claim currently held on a world’s components.
Fields§
§next: u64The id the next holder is given.
held: Vec<Lease>Implementations§
Source§impl BorrowLedger
impl BorrowLedger
Sourcepub(crate) fn next_group(&mut self) -> u64
pub(crate) fn next_group(&mut self) -> u64
The id the next holder files its claims under.
Sourcepub(crate) fn claim(
&mut self,
group: u64,
type_id: TypeId,
name: &'static str,
mode: Mode,
rows: Rows,
origin: &'static Location<'static>,
)
pub(crate) fn claim( &mut self, group: u64, type_id: TypeId, name: &'static str, mode: Mode, rows: Rows, origin: &'static Location<'static>, )
Register a claim, or panic when it overlaps one held by another holder.
A holder asking again for a component it already holds over the same rows is not a conflict: that is what a second pass over one archetype does.
Trait Implementations§
Auto Trait Implementations§
impl Forget for BorrowLedger
impl Freeze for BorrowLedger
impl RefUnwindSafe for BorrowLedger
impl Send for BorrowLedger
impl Sync for BorrowLedger
impl Unpin for BorrowLedger
impl UnsafeUnpin for BorrowLedger
impl UnwindSafe for BorrowLedger
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