Document better

This commit is contained in:
Jonathan Li 2020-10-02 21:53:40 -04:00
parent 8346209c37
commit 7c24277210
2 changed files with 5 additions and 3 deletions

View File

@ -10,9 +10,10 @@ use std::u32;
/// A container that distributes its contents vertically. /// A container that distributes its contents vertically.
/// ///
/// A [`Column`] will try to fill the horizontal space of its container. /// A [`Column`] will not fill the horizontal space of its container. (set to [`Length::shrink`] by defualt)
/// ///
/// [`Column`]: struct.Column.html /// [`Column`]: struct.Column.html
/// [`Length::shrink`]: ../../enum.Length.html
#[allow(missing_debug_implementations)] #[allow(missing_debug_implementations)]
pub struct Column<'a, Message, Renderer> { pub struct Column<'a, Message, Renderer> {
spacing: u16, spacing: u16,
@ -42,7 +43,7 @@ impl<'a, Message, Renderer> Column<'a, Message, Renderer> {
Column { Column {
spacing: 0, spacing: 0,
padding: 0, padding: 0,
width: Length::Fill, width: Length::Shrink,
height: Length::Shrink, height: Length::Shrink,
max_width: u32::MAX, max_width: u32::MAX,
max_height: u32::MAX, max_height: u32::MAX,

View File

@ -10,9 +10,10 @@ use std::u32;
/// A container that distributes its contents horizontally. /// A container that distributes its contents horizontally.
/// ///
/// A [`Row`] will try to fill the horizontal space of its container. /// A [`Row`] will not fill the horizontal space of its container. (set to [`Length::shrink`] by defualt)
/// ///
/// [`Row`]: struct.Row.html /// [`Row`]: struct.Row.html
/// [`Length::shrink`]: ../../enum.Length.html
#[allow(missing_debug_implementations)] #[allow(missing_debug_implementations)]
pub struct Row<'a, Message, Renderer> { pub struct Row<'a, Message, Renderer> {
spacing: u16, spacing: u16,