Skip to main content

LongName

Type Alias LongName 

Source
pub type LongName = BoundedName<MAX_LONG_NAME_LENGTH>;
Expand description

A Name with a higher string capacity of MAX_LONG_NAME_LENGTH.

Aliased Type§

pub struct LongName(/* private fields */);

Implementations§

Source§

impl LongName

Source

pub fn to_short_infallible(self) -> Name

Converts this LongName into a Name without reallocating.

§Panics

Panics if the length of the name exceeds MAX_NAME_LENGTH.

Trait Implementations§

Source§

impl From<BoundedName<MAX_NAME_LENGTH>> for LongName

Source§

fn from(name: Name) -> Self

Converts to this type from the input type.