[−][src]Struct kas::layout::FixedGridStorage
Fixed-length grid storage
Argument types:
WR
is expected to be[SizeRules; cols + 1]
HR
is expected to be[SizeRules; rows + 1]
W
is expected to be[u32; cols]
orVec<u32>
H
is expected to be[u32; rows]
orVec<u32>
Trait Implementations
impl<WR: Clone, HR: Clone, W: Clone, H: Clone> Clone for FixedGridStorage<WR, HR, W, H>
[src]
pub fn clone(&self) -> FixedGridStorage<WR, HR, W, H>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<WR: Debug + Clone, HR: Debug + Clone, W: Debug + Clone, H: Debug + Clone> Debug for FixedGridStorage<WR, HR, W, H>
[src]
impl<WR: Default + Clone, HR: Default + Clone, W: Default + Clone, H: Default + Clone> Default for FixedGridStorage<WR, HR, W, H>
[src]
pub fn default() -> FixedGridStorage<WR, HR, W, H>
[src]
impl<WR, HR, W, H> GridStorage for FixedGridStorage<WR, HR, W, H> where
WR: Clone + AsRef<[SizeRules]> + AsMut<[SizeRules]>,
HR: Clone + AsRef<[SizeRules]> + AsMut<[SizeRules]>,
W: Clone + AsRef<[u32]> + AsMut<[u32]>,
H: Clone + AsRef<[u32]> + AsMut<[u32]>,
[src]
WR: Clone + AsRef<[SizeRules]> + AsMut<[SizeRules]>,
HR: Clone + AsRef<[SizeRules]> + AsMut<[SizeRules]>,
W: Clone + AsRef<[u32]> + AsMut<[u32]>,
H: Clone + AsRef<[u32]> + AsMut<[u32]>,
pub fn set_dims(&mut self, cols: usize, rows: usize)
[src]
pub fn rules_and_widths(&mut self) -> (&mut [SizeRules], &mut [u32])
[src]
pub fn rules_and_heights(&mut self) -> (&mut [SizeRules], &mut [u32])
[src]
impl<WR: Clone, HR: Clone, W: Clone, H: Clone> Storage for FixedGridStorage<WR, HR, W, H>
[src]
Auto Trait Implementations
impl<WR, HR, W, H> RefUnwindSafe for FixedGridStorage<WR, HR, W, H> where
H: RefUnwindSafe,
HR: RefUnwindSafe,
W: RefUnwindSafe,
WR: RefUnwindSafe,
H: RefUnwindSafe,
HR: RefUnwindSafe,
W: RefUnwindSafe,
WR: RefUnwindSafe,
impl<WR, HR, W, H> Send for FixedGridStorage<WR, HR, W, H> where
H: Send,
HR: Send,
W: Send,
WR: Send,
H: Send,
HR: Send,
W: Send,
WR: Send,
impl<WR, HR, W, H> Sync for FixedGridStorage<WR, HR, W, H> where
H: Sync,
HR: Sync,
W: Sync,
WR: Sync,
H: Sync,
HR: Sync,
W: Sync,
WR: Sync,
impl<WR, HR, W, H> Unpin for FixedGridStorage<WR, HR, W, H> where
H: Unpin,
HR: Unpin,
W: Unpin,
WR: Unpin,
H: Unpin,
HR: Unpin,
W: Unpin,
WR: Unpin,
impl<WR, HR, W, H> UnwindSafe for FixedGridStorage<WR, HR, W, H> where
H: UnwindSafe,
HR: UnwindSafe,
W: UnwindSafe,
WR: UnwindSafe,
H: UnwindSafe,
HR: UnwindSafe,
W: UnwindSafe,
WR: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,