Skip to content

vdrn/semisafe_cell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

semisafe_cell

A interior-mutability types that enforce runtime borrow checking in debug builds or when full_safety is enabled, otherwise the caller is reponsible for upholding Rust's aliasing rules.

Variants:

  • SemiSafeCell<T>: single-threaded (uses RefCell for runtime borrow checking).
  • SyncSemiSafeCell<T>: thread-safe (uses atomic_refcell::AtomicRefCell for runtime borrow checking).

Features:

  • full_safety: enables runtime borrow checks in release too.
  • coerce_unsized: nightly-only; allows CoerceUnsized coercions.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages