pub fn would_be_zero_sized<I>(dl: &TargetDataLayout, fields: I)
                                  -> Result<bool, LayoutError<'gcx>>
    where I: Iterator<Item=Result<&'a Layout, LayoutError<'gcx>>> {
        for field in fields {
            let field = field?;
            if field.is_unsized() || field.size(dl).bytes() > 0 {
                return Ok(false);
            }
        }
        Ok(true)
    }
/// Determine whether a structure would be zero-sized, given its fields.
Determine whether a structure would be zero-sized, given its fields.
Determine whether a structure would be zero - sized given its fields .
pub fn would_be_zero_sized<I>(dl: &TargetDataLayout, fields: I)
                                  -> Result<bool, LayoutError<'gcx>>
    where I: Iterator<Item=Result<&'a Layout, LayoutError<'gcx>>> {
        for field in fields {
            let field = field?;
            if field.is_unsized() || field.size(dl).bytes() > 0 {
                return Ok(false);
            }
        }
        Ok(true)
    }
pub fn would_be_zero_sized < I > ( dl : & TargetDataLayout , fields : I ) -> Result < bool , LayoutError < ' gcx > > where I : Iterator < Item = Result < & ' a Layout , LayoutError < ' gcx > > > { for field in fields { let field = field ? ; if field . is_unsized ( ) || field . size ( dl ) . bytes ( ) > 0 { return Ok ( false ) ; } } Ok ( true ) }
Determine whether a structure would be zero-sized, given its fields.
Determine whether a structure would be zero - sized given its fields .
dl
&TargetDataLayout
fields
I
dl
&TargetDataLayout
fields
I