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 as AsExpression<T>>::Expression, <len as AsExpression<Integer>>::Expression>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.