[−][src]Struct bevy_hecs::AtomicBorrow
Atomically enforces Rust-style borrow checking at runtime
Implementations
impl AtomicBorrow
[src]
pub const fn new() -> Self
[src]
Creates a new AtomicBorrow
pub fn borrow(&self) -> bool
[src]
Starts a new immutable borrow. This can be called any number of times
pub fn borrow_mut(&self) -> bool
[src]
Starts a new mutable borrow. This must be unique. It cannot be done in parallel with other borrows or borrow_muts
pub fn release(&self)
[src]
Release an immutable borrow.
pub fn release_mut(&self)
[src]
Release a mutable borrow.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for AtomicBorrow
impl Send for AtomicBorrow
impl Sync for AtomicBorrow
impl Unpin for AtomicBorrow
impl UnwindSafe for AtomicBorrow
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,