pub fn new<S>(name: S) -> Self
    where
        S: Into<String>,
    {
        Segment {
            name: name.into(),
            ..Default::default()
        }
    }
/// Creates a new Segment with the name given.
Creates a new Segment with the name given.
Creates a new Segment with the name given .
pub fn new<S>(name: S) -> Self
    where
        S: Into<String>,
    {
        Segment {
            name: name.into(),
            ..Default::default()
        }
    }
pub fn new < S > ( name : S ) -> Self where S : Into < String > , { Segment { name : name . into ( ) , .. Default :: default ( ) } }
Creates a new Segment with the name given.
Creates a new Segment with the name given .
name
S
name
S