pub struct BarrierLevel(/* private fields */);
Implementations§
Source§impl BarrierLevel
impl BarrierLevel
Sourcepub fn cube_coop(elected_unit: u32) -> Self
pub fn cube_coop(elected_unit: u32) -> Self
Creates a CubeCoop barrier level
Will sync all units
Sourcepub fn cube_manual(elected_unit: u32) -> Self
pub fn cube_manual(elected_unit: u32) -> Self
Creates a CubeManual barrier level
Will sync all units
pub fn __expand_unit(_scope: &mut Scope) -> BarrierLevel
pub fn __expand_cube_coop(_scope: &mut Scope, elected_unit: u32) -> Self
pub fn __expand_cube_manual(_scope: &mut Scope, elected_unit: u32) -> Self
Trait Implementations§
Source§impl Clone for BarrierLevel
impl Clone for BarrierLevel
Source§fn clone(&self) -> BarrierLevel
fn clone(&self) -> BarrierLevel
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl CubeDebug for BarrierLevel
impl CubeDebug for BarrierLevel
Source§fn set_debug_name(&self, _scope: &mut Scope, _name: &'static str)
fn set_debug_name(&self, _scope: &mut Scope, _name: &'static str)
Set the debug name of this type’s expansion. Should do nothing for types that don’t appear
at runtime
Source§impl CubeType for BarrierLevel
impl CubeType for BarrierLevel
type ExpandType = BarrierLevel
Source§fn init(scope: &mut Scope, expand: Self::ExpandType) -> Self::ExpandType
fn init(scope: &mut Scope, expand: Self::ExpandType) -> Self::ExpandType
Wrapper around the init method, necessary to type inference.
Source§impl Init for BarrierLevel
impl Init for BarrierLevel
Source§impl PartialEq for BarrierLevel
impl PartialEq for BarrierLevel
impl Copy for BarrierLevel
impl Eq for BarrierLevel
impl StructuralPartialEq for BarrierLevel
Auto Trait Implementations§
impl Freeze for BarrierLevel
impl RefUnwindSafe for BarrierLevel
impl Send for BarrierLevel
impl Sync for BarrierLevel
impl Unpin for BarrierLevel
impl UnwindSafe for BarrierLevel
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more