pub fn remove_cooked(attrs: &mut Vec<Attribute>) -> Vec<Attribute> {
    let mut cooked = Vec::new();

    // FIXME: Replace with `Vec::drain_filter` once it is stable.
    let mut i = 0;
    while i < attrs.len() {
        if !is_cooked(&attrs[i]) {
            i += 1;
            continue;
        }

        cooked.push(attrs.remove(i));
    }

    cooked
}
/// Removes cooked attributes from a vector of attributes. Uncooked attributes are left in the vector.
///
/// # Return
///
/// Returns a vector of cooked attributes that have been removed from the input vector.
Removes cooked attributes from a vector of attributes. Uncooked attributes are left in the vector.
Removes cooked attributes from a vector of attributes . Uncooked attributes are left in the vector .
pub fn remove_cooked(attrs: &mut Vec<Attribute>) -> Vec<Attribute> {
    let mut cooked = Vec::new();
    // FIXME: Replace with `Vec::drain_filter` once it is stable.
    let mut i = 0;
    while i < attrs.len() {
        if !is_cooked(&attrs[i]) {
            i += 1;
            continue;
        }
        cooked.push(attrs.remove(i));
    }
    cooked
}
pub fn remove_cooked ( attrs : & mut Vec < Attribute > ) -> Vec < Attribute > { let mut cooked = Vec :: new ( ) ; // FIXME: Replace with `Vec::drain_filter` once it is stable. let mut i = 0 ; while i < attrs . len ( ) { if ! is_cooked ( & attrs [ i ] ) { i += 1 ; continue ; } cooked . push ( attrs . remove ( i ) ) ; } cooked }
Removes cooked attributes from a vector of attributes.
Removes cooked attributes from a vector of attributes .
attrs
&mut Vec<Attribute>
Returns a vector of cooked attributes that have been removed from the input vector.
Returns a vector of cooked attributes that have been removed from the input vector .
attrs
&mut Vec<Attribute>