Function rustfmt_nightly::attr::take_while_with_pred[−][src]

fn take_while_with_pred<'a, P>(
    context: &RewriteContext<'_>,
    attrs: &'a [Attribute],
    pred: P
) -> &'a [Attribute]ⓘ
Notable traits for &'_ [u8]
impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
where
    P: Fn(&Attribute) -> bool, 
Expand description

Returns the first group of attributes that fills the given predicate. We consider two doc comments are in different group if they are separated by normal comments.