/// Returns a string representation for the list
///
/// # Examples:
/// ```
/// # use starlark::values::*;
/// # use starlark::values::list::List;
/// assert_eq!("[1, 2, 3]", Value::from(vec![1, 2, 3]).to_str());
/// assert_eq!("[1, [2, 3]]",
///            Value::from(vec![Value::from(1), Value::from(vec![2, 3])]).to_str());
/// assert_eq!("[1]", Value::from(vec![1]).to_str());
/// assert_eq!("[]", Value::from(Vec::<i64>::new()).to_str());
/// ```
Returns a string representation for the list
Returns a string representation for the list
fn to_repr_impl(&self, buf: &mut String) -> fmt::Result {
        write!(buf, "[")?;
        for (i, v) in self.content.iter().enumerate() {
            if i != 0 {
                write!(buf, ", ")?;
            }
            v.to_repr_impl(buf)?;
        }
        write!(buf, "]")?;
        Ok(())
    }
fn to_repr_impl ( & self , buf : & mut String ) -> fmt :: Result { write ! ( buf " " ) ? ; for ( i , v ) in self . content . iter ( ) . enumerate ( ) { if i != 0 { write ! ( buf " " ) ? ; } v . to_repr_impl ( buf ) ? ; } write ! ( buf " " ) ? ; Ok ( ( ) ) }
Returns a string representation for the list
Returns a string representation for the list
&self
buf
&mut String
examples:
None
use starlark::values::*;
None
use starlark::values::list::list;
None