pub enum CardSection<'a> {
Body(&'a str),
Stats(&'a [StatRow<'a>]),
}Expand description
Borrowed full sections. A non-scrolling overflow omits the entire section, including every value of a stats section, rather than cropping an essential value. Use scrolling when that omission is unsuitable for the game.
Variants§
Trait Implementations§
Source§impl<'a> Clone for CardSection<'a>
impl<'a> Clone for CardSection<'a>
Source§fn clone(&self) -> CardSection<'a>
fn clone(&self) -> CardSection<'a>
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<'a> Debug for CardSection<'a>
impl<'a> Debug for CardSection<'a>
impl<'a> Copy for CardSection<'a>
Auto Trait Implementations§
impl<'a> Freeze for CardSection<'a>
impl<'a> RefUnwindSafe for CardSection<'a>
impl<'a> Send for CardSection<'a>
impl<'a> Sync for CardSection<'a>
impl<'a> Unpin for CardSection<'a>
impl<'a> UnwindSafe for CardSection<'a>
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