fn fmt(&self, f:&mut fmt::Formatter<'_>) -> fmt::Result {
        // if len is 0, the directly write empty list
        if self.0.len() == 0 {
            return write!(f, "Skiplists<Empty>");
        }

        // if notm then SkipNode,print_row
        // this is to handle print of rows by order
        for sn in &self.0 {
            // add to formatter, a jump line, to difference between rows
            write!(f, "\n")?;
            // print row f ( node )
            sn.print_row(f)?;
        }

        Ok(())
    }
// skiplists impl of display
// override frm::Formatter with static ref, return a fmt::Result
skiplists impl of display
override frm::Formatter with static ref, return a fmt::Result
skiplists impl of display override frm :: Formatter with static ref return a fmt :: Result
fn fmt(&self, f:&mut fmt::Formatter<'_>) -> fmt::Result {
        // if len is 0, the directly write empty list
        if self.0.len() == 0 {
            return write!(f, "Skiplists<Empty>");
        }
        // if notm then SkipNode,print_row
        // this is to handle print of rows by order
        for sn in &self.0 {
            // add to formatter, a jump line, to difference between rows
            write!(f, "\n")?;
            // print row f ( node )
            sn.print_row(f)?;
        }
        Ok(())
    }
fn fmt ( & self , f : & mut fmt :: Formatter < ' _ > ) -> fmt :: Result { // if len is 0, the directly write empty list if self . 0 . len ( ) == 0 { return write ! ( f " " ) ; } // if notm then SkipNode,print_row // this is to handle print of rows by order for sn in & self . 0 { // add to formatter, a jump line, to difference between rows write ! ( f " \n " ) ? ; // print row f ( node ) sn . print_row ( f ) ? ; } Ok ( ( ) ) }
skiplists impl of display
override frm::Formatter with static ref, return a fmt::Result
skiplists impl of display override frm :: Formatter with static ref return a fmt :: Result
&self
f
&mut fmt::Formatter<'_>
&self
f
&mut fmt::Formatter<'_>