Type Definition specs::WriteExpect[][src]

type WriteExpect<'a, T> = Write<'a, T, PanicHandler>;

Allows to fetch a resource in a system mutably. This will panic if the resource does not exist. Usage of Write or Option<Write> is therefore recommended.

If the nightly feature of shred is enabled, this will print the type of the resource in case of a panic. That can help for debugging.

Trait Implementations

impl<'a, 'b, T> Join for &'a mut WriteExpect<'b, T> where
    &'a mut T: Join,
    T: Resource
[src]

Type of joined components.

Type of joined storages.

Type of joined bit mask.

Open this join by returning the mask and the storages. Read more

Get a joined component value by a given index.

If this Join typically returns all indices in the mask, then iterating over only it or combined with other joins that are also dangerous will cause the JoinIter/ParJoin to go through all indices which is usually not what is wanted and will kill performance. Read more

Important traits for JoinIter<J>

Create a joined iterator over the contents.

Returns a Join-able structure that yields all indices, returning None for all missing elements and Some(T) for found elements. Read more

impl<'a, 'b, T> ParJoin for &'a mut WriteExpect<'b, T> where
    &'a mut T: ParJoin,
    T: Resource
[src]

Create a joined parallel iterator over the contents.