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>,
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.