Function eql [src]

Prototype

pub fn eql(a: Address, b: Address) bool

Parameters

a: Addressb: Address

Source

pub fn eql(a: Address, b: Address) bool { const a_bytes = @as([*]const u8, @ptrCast(&a.any))[0..a.getOsSockLen()]; const b_bytes = @as([*]const u8, @ptrCast(&b.any))[0..b.getOsSockLen()]; return mem.eql(u8, a_bytes, b_bytes); }