pub fn len(&self) -> Float {
        if let ElementData::Edge(len) = self.data {
            len.0
        } else {
            panic!("Expected edge!")
        }
    }
/// Returns the edge length of the element data, if applicable.
///
/// # Panics
/// Panics if the data of this element type isn't an
/// [`Edge`](ElementData::Edge).
Returns the edge length of the element data, if applicable.
Returns the edge length of the element data if applicable .
pub fn len(&self) -> Float {
        if let ElementData::Edge(len) = self.data {
            len.0
        } else {
            panic!("Expected edge!")
        }
    }
pub fn len ( & self ) -> Float { if let ElementData :: Edge ( len ) = self . data { len . 0 } else { panic ! ( " " ) } }
Returns the edge length of the element data, if applicable.
Returns the edge length of the element data if applicable .
&self
&self
panics
Panics if the data of this element type isn't an
[`Edge`](ElementData::Edge).
Panics if the data of this element type isn ' t an [ ` Edge ` ] ( ElementData :: Edge ) .