Trait il2_iltags::tags::DefaultWithId [−][src]
pub trait DefaultWithId {
fn default_with_id(id: u64) -> Self;
}
Expand description
This trait defines a variant of the std::default::Default
trait that
takes an id as a parameter.
Most of the tags implemented by this library do implement this trait but it is not mandatory.
Required methods
fn default_with_id(id: u64) -> Self
fn default_with_id(id: u64) -> Self
Creates a default tag with.
Arguments:
id
: The id.