pub struct CustomLayout<CID>where
CID: EzCptIds,{ /* private fields */ }Expand description
A layout wrapper that makes it easy to create nested layouts.
Implementations§
Source§impl<CID> CustomLayout<CID>where
CID: EzCptIds,
impl<CID> CustomLayout<CID>where
CID: EzCptIds,
Sourcepub fn named<S: Into<String>>(
name: S,
layout: Layout,
items: VecDeque<LayoutItem<CID>>,
) -> Result<Self>
pub fn named<S: Into<String>>( name: S, layout: Layout, items: VecDeque<LayoutItem<CID>>, ) -> Result<Self>
Create a new CustomLayout with a name
§Errors
- [
LayoutError::MismatchConstraintsAndCpts] if the number of areas generated by the layout does not match the number of items in the layout.
Trait Implementations§
Source§impl<CID> Clone for CustomLayout<CID>
impl<CID> Clone for CustomLayout<CID>
Source§fn clone(&self) -> CustomLayout<CID>
fn clone(&self) -> CustomLayout<CID>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<CID> Freeze for CustomLayout<CID>
impl<CID> RefUnwindSafe for CustomLayout<CID>
impl<CID> Send for CustomLayout<CID>
impl<CID> Sync for CustomLayout<CID>
impl<CID> Unpin for CustomLayout<CID>
impl<CID> UnsafeUnpin for CustomLayout<CID>
impl<CID> UnwindSafe for CustomLayout<CID>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more