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