Function diesel::pg::expression::functions::set_masklen
source ยท pub fn set_masklen<T: InetOrCidr + SingleValue, addr, len>(
addr: addr,
len: len,
) -> set_masklen<T, addr, len>
Available on crate feature
postgres_backend
only.Expand description
Sets the netmask length for an inet or cidr value. For inet, the address part does not changes. For cidr, address bits to the right of the new netmask are set to zero.