Skip to main content

rings

Function rings 

Source
pub fn rings(
    tenv: &TyEnv,
) -> Result<(IdVec<ChanId, Option<Ring>>, Diagnostics), Diagnostics>
Expand description

Every channel’s ring, None if unbuffered, and a warning for each ring that leaves part of its region unused because what fits is more than MAX_CAPACITY.

§Errors

A payload with no bytes, a region with no slot, or a declared capacity of 0 or more than fits, each at its channel.