pub fn stack<'a, T: Iterator<Item = &'a Vec2>>(&self, iter: T) -> Vec2 {
        match *self {
            Orientation::Horizontal => {
                iter.fold(Vec2::zero(), |a, b| a.stack_horizontal(b))
            }
            Orientation::Vertical => {
                iter.fold(Vec2::zero(), |a, b| a.stack_vertical(b))
            }
        }
    }
/// Takes an iterator on sizes, and stack them in the current orientation,
/// returning the size of the required bounding box.
///
/// For an horizontal view, returns (Sum(x), Max(y)).
/// For a vertical view, returns (Max(x),Sum(y)).
Takes an iterator on sizes, and stack them in the current orientation,
returning the size of the required bounding box.


Takes an iterator on sizes and stack them in the current orientation returning the size of the required bounding box .
pub fn stack<'a, T: Iterator<Item = &'a Vec2>>(&self, iter: T) -> Vec2 {
        match *self {
            Orientation::Horizontal => {
                iter.fold(Vec2::zero(), |a, b| a.stack_horizontal(b))
            }
            Orientation::Vertical => {
                iter.fold(Vec2::zero(), |a, b| a.stack_vertical(b))
            }
        }
    }
pub fn stack < ' a , T : Iterator < Item = & ' a Vec2 > > ( & self , iter : T ) -> Vec2 { match * self { Orientation :: Horizontal => { iter . fold ( Vec2 :: zero ( ) , | a , b | a . stack_horizontal ( b ) ) } Orientation :: Vertical => { iter . fold ( Vec2 :: zero ( ) , | a , b | a . stack_vertical ( b ) ) } } }
Takes an iterator on sizes, and stack them in the current orientation,
returning the size of the required bounding box.
Takes an iterator on sizes and stack them in the current orientation returning the size of the required bounding box .
&self
iter
T
&self
iter
T