Rename new_with_children
to with_children
This commit is contained in:
parent
ae123d8f14
commit
a146e53eb0
@ -42,10 +42,12 @@ impl<'a, Message, Renderer> Column<'a, Message, Renderer> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Creates a [`Column`] with children.
|
/// Creates a [`Column`] with the given elements.
|
||||||
///
|
///
|
||||||
/// [`Column`]: struct.Column.html
|
/// [`Column`]: struct.Column.html
|
||||||
pub fn new_with_children(children: Vec<Element<'a, Message, Renderer>>) -> Self {
|
pub fn with_children(
|
||||||
|
children: Vec<Element<'a, Message, Renderer>>,
|
||||||
|
) -> Self {
|
||||||
Column {
|
Column {
|
||||||
spacing: 0,
|
spacing: 0,
|
||||||
padding: 0,
|
padding: 0,
|
||||||
|
@ -42,10 +42,12 @@ impl<'a, Message, Renderer> Row<'a, Message, Renderer> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Creates a [`Row`] with children.
|
/// Creates a [`Row`] with the given elements.
|
||||||
///
|
///
|
||||||
/// [`Row`]: struct.Row.html
|
/// [`Row`]: struct.Row.html
|
||||||
pub fn new_with_children(children: Vec<Element<'a, Message, Renderer>>) -> Self {
|
pub fn with_children(
|
||||||
|
children: Vec<Element<'a, Message, Renderer>>,
|
||||||
|
) -> Self {
|
||||||
Row {
|
Row {
|
||||||
spacing: 0,
|
spacing: 0,
|
||||||
padding: 0,
|
padding: 0,
|
||||||
|
Loading…
Reference in New Issue
Block a user