Skip to content

Commit

Permalink
Re-export GatedStorage as public
Browse files Browse the repository at this point in the history
  • Loading branch information
msiglreith authored and kvark committed Mar 9, 2017
1 parent 6277556 commit ebe71b6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ extern crate atom;
pub use storage::{Storage, UnprotectedStorage, AntiStorage,
VecStorage, HashMapStorage, NullStorage, InsertResult,
MaskedStorage};
#[cfg(feature="ticket")]
pub use storage::{GatedStorage};
pub use world::{Component, World, EntityBuilder, Entities, CreateEntities,
Allocator};
pub use join::{Join, JoinIter};
Expand Down
2 changes: 2 additions & 0 deletions src/storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@ impl<'a, T, A, D> Join for &'a mut Storage<T, A, D> where


#[cfg(feature="ticket")]
///
pub struct GatedStorage<T, A, G> {
marker: PhantomData<T>,
alloc: A,
Expand All @@ -248,6 +249,7 @@ pub struct GatedStorage<T, A, G> {

#[cfg(feature="ticket")]
impl<T, A, G> GatedStorage<T, A, G> {
/// Creates a new `GatedStorage`.
pub fn new(alloc: A, gate: G) -> Self {
GatedStorage {
marker: PhantomData,
Expand Down

0 comments on commit ebe71b6

Please sign in to comment.