pub fn new(ty: impl Into<String>) -> Self {
        Event {
            ty: ty.into(),
            attributes: Vec::with_capacity(10),
        }
    }
/// Create a new event with the given type and an empty list of attributes.
Create a new event with the given type and an empty list of attributes.
Create a new event with the given type and an empty list of attributes .
pub fn new(ty: impl Into<String>) -> Self {
        Event {
            ty: ty.into(),
            attributes: Vec::with_capacity(10),
        }
    }
pub fn new ( ty : impl Into < String > ) -> Self { Event { ty : ty . into ( ) , attributes : Vec :: with_capacity ( 10 ) , } }
Create a new event with the given type and an empty list of attributes.
Create a new event with the given type and an empty list of attributes .
ty
impl Into<String>
ty
impl Into<String>