Skip to main content

id6

Function id6 

Source
pub fn id6(eui: Eui) -> String
Expand description

Writes an identifier in the ID6 form the protocol prefers.

The eight bytes are read as four groups of sixteen bits and written like an IPv6 address: leading zeros in a group are dropped, and the longest run of zero groups becomes ::.

§Arguments

  • eui - the identifier to write.

§Returns

The identifier, such as 1:203:405:607:8 or ::1.