pub fn marked<M>(self, storage: &mut WriteStorage<M>, alloc: &mut M::Allocator) -> Self
    where
        M: Marker,
    {
        alloc.mark(self.entity, storage);
        self
    }
/// Add a `Marker` to the entity with the associated allocator,
/// and component storage.
///
/// ## Examples
///
/// ```
/// use specs::{
///     prelude::*,
///     saveload::{SimpleMarker, SimpleMarkerAllocator},
/// };
///
/// struct NetworkSync;
///
/// let mut world = World::new();
/// world.register::<SimpleMarker<NetworkSync>>();
/// world.insert(SimpleMarkerAllocator::<NetworkSync>::new());
///
/// let mut storage = world.write_storage::<SimpleMarker<NetworkSync>>();
/// let mut alloc = world.write_resource::<SimpleMarkerAllocator<NetworkSync>>();
///
/// let entities = world.entities();
/// entities
///     .build_entity()
///     /* .with(Component1) */
///     .marked(&mut storage, &mut alloc)
///     .build();
/// ```
Add a `Marker` to the entity with the associated allocator,
and component storage.
Add a ` Marker ` to the entity with the associated allocator and component storage .
pub fn marked<M>(self, storage: &mut WriteStorage<M>, alloc: &mut M::Allocator) -> Self
    where
        M: Marker,
    {
        alloc.mark(self.entity, storage);
        self
    }
pub fn marked < M > ( self , storage : & mut WriteStorage < M > , alloc : & mut M :: Allocator ) -> Self where M : Marker , { alloc . mark ( self . entity , storage ) ; self }
Add a `Marker` to the entity with the associated allocator,
and component storage.
Add a ` Marker ` to the entity with the associated allocator and component storage .
self
storage
&mut WriteStorage<M>
alloc
&mut M::Allocator
examples
```
use specs::{
prelude::*,
saveload::{SimpleMarker, SimpleMarkerAllocator},
}.

struct NetworkSync.

let mut world = World::new();
world.register::>();
world.insert(SimpleMarkerAllocator::::new()).

let mut storage = world.write_storage::>();
let mut alloc = world.write_resource::>().

let entities = world.entities();
entities
.build_entity()
.with(Component1)
.marked(&mut storage, &mut alloc)
.build();
```
` ` ` use specs :: { prelude :: * saveload :: { SimpleMarker SimpleMarkerAllocator } } . struct NetworkSync . let mut world = World :: new () ; world . register :: > () ; world . insert ( SimpleMarkerAllocator :::: new () ) . let mut storage = world . write_storage :: > () ; let mut alloc = world . write_resource :: > () . let entities = world . entities () ; entities . build_entity () . with ( Component1 ) . marked ( &mut storage &mut alloc ) . build () ; ` ` `