1

Add `Ipv6Addr::is_benchmarking` by CDirkx · Pull Request #86434 · rust-lang/rust...

 2 years ago
source link: https://github.com/rust-lang/rust/pull/86434
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Copy link

Collaborator

rust-highfive commented on Jun 18

r? @Mark-Simulacrum

(rust-highfive has picked a reviewer for you, use r? to override)

let unspecified: u16 = 1 << 0;

let loopback: u16 = 1 << 1;

let unique_local: u16 = 1 << 2;

let global: u16 = 1 << 3;

let unicast_link_local: u16 = 1 << 4;

let unicast_global: u16 = 1 << 7;

let documentation: u16 = 1 << 8;

let multicast_interface_local: u16 = 1 << 9;

let multicast_link_local: u16 = 1 << 10;

let multicast_realm_local: u16 = 1 << 11;

let multicast_admin_local: u16 = 1 << 12;

let multicast_site_local: u16 = 1 << 13;

let multicast_organization_local: u16 = 1 << 14;

let multicast_global: u16 = 1 << 15;

let multicast: u16 = multicast_interface_local

let unspecified: u32 = 1 << 0;

let loopback: u32 = 1 << 1;

let unique_local: u32 = 1 << 2;

let global: u32 = 1 << 3;

let unicast_link_local: u32 = 1 << 4;

let unicast_global: u32 = 1 << 7;

let documentation: u32 = 1 << 8;

let benchmarking: u32 = 1 << 16;

let multicast_interface_local: u32 = 1 << 9;

let multicast_link_local: u32 = 1 << 10;

let multicast_realm_local: u32 = 1 << 11;

let multicast_admin_local: u32 = 1 << 12;

let multicast_site_local: u32 = 1 << 13;

let multicast_organization_local: u32 = 1 << 14;

let multicast_global: u32 = 1 << 15;

let multicast: u32 = multicast_interface_local

Copy link

Contributor

Author

@CDirkx CDirkx on Jun 18

edited

More than 16 properties are now being checked, so the tag type is changed from u16 to u32. Also benchmarking is assigned value i << 16, the order doesn't really matter, only that the value is distinct from the other tags.


Recommend

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK