pub fn debug_check(&self, name: &str) {
        if !(0.0 <= self.min.width
            && self.min.width <= self.max.width
            && 0.0 <= self.min.height
            && self.min.height <= self.max.height
            && self.min.expand() == self.min
            && self.max.expand() == self.max)
        {
            tracing::warn!("Bad BoxConstraints passed to {}:", name);
            tracing::warn!("{:?}", self);
        }

        if self.min.width.is_infinite() {
            tracing::warn!("Infinite minimum width constraint passed to {}:", name);
        }

        if self.min.height.is_infinite() {
            tracing::warn!("Infinite minimum height constraint passed to {}:", name);
        }
    }
/// Check to see if these constraints are legit.
///
/// Logs a warning if BoxConstraints are invalid.
Check to see if these constraints are legit.
Logs a warning if BoxConstraints are invalid.
Check to see if these constraints are legit . Logs a warning if BoxConstraints are invalid .
pub fn debug_check(&self, name: &str) {
        if !(0.0 <= self.min.width
            && self.min.width <= self.max.width
            && 0.0 <= self.min.height
            && self.min.height <= self.max.height
            && self.min.expand() == self.min
            && self.max.expand() == self.max)
        {
            tracing::warn!("Bad BoxConstraints passed to {}:", name);
            tracing::warn!("{:?}", self);
        }
        if self.min.width.is_infinite() {
            tracing::warn!("Infinite minimum width constraint passed to {}:", name);
        }
        if self.min.height.is_infinite() {
            tracing::warn!("Infinite minimum height constraint passed to {}:", name);
        }
    }
pub fn debug_check ( & self , name : & str ) { if ! ( 0.0 <= self . min . width && self . min . width <= self . max . width && 0.0 <= self . min . height && self . min . height <= self . max . height && self . min . expand ( ) == self . min && self . max . expand ( ) == self . max ) { tracing :: warn ! ( " " name ) ; tracing :: warn ! ( " " self ) ; } if self . min . width . is_infinite ( ) { tracing :: warn ! ( " " name ) ; } if self . min . height . is_infinite ( ) { tracing :: warn ! ( " " name ) ; } }
Check to see if these constraints are legit.
Check to see if these constraints are legit .
&self
name
&str
&self
name
&str