diesel::pg::expression::dsl

Function set_masklen

source
pub fn set_masklen<T: InetOrCidr + SingleValue, addr, len>(
    addr: addr,
    len: len,
) -> set_masklen<T, addr, len>
where addr: AsExpression<T>, len: AsExpression<Integer>,
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.