pub struct ContiguousOffsetsWithBroadcast {
pub start: usize,
pub len: usize,
pub left_broadcast: usize,
pub right_broadcast: usize,
}Expand description
Offsets for a layout that is contiguous in its inner dimensions but may be broadcast on the left or right outer dimensions.
Fields§
§start: usizeStart offset of the contiguous block.
len: usizeLength of the contiguous block in elements.
left_broadcast: usizeNumber of times the block is repeated on the left (outer) dimensions.
right_broadcast: usizeNumber of times the block is repeated on the right (inner) dimensions.
Trait Implementations§
impl Eq for ContiguousOffsetsWithBroadcast
impl StructuralPartialEq for ContiguousOffsetsWithBroadcast
Auto Trait Implementations§
impl Freeze for ContiguousOffsetsWithBroadcast
impl RefUnwindSafe for ContiguousOffsetsWithBroadcast
impl Send for ContiguousOffsetsWithBroadcast
impl Sync for ContiguousOffsetsWithBroadcast
impl Unpin for ContiguousOffsetsWithBroadcast
impl UnsafeUnpin for ContiguousOffsetsWithBroadcast
impl UnwindSafe for ContiguousOffsetsWithBroadcast
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.