fn borrowed_lifetimes(cont: &Container) -> BorrowedLifetimes {
    let mut lifetimes = BTreeSet::new();
    for field in cont.data.all_fields() {
        if !field.attrs.skip_deserializing() {
            lifetimes.extend(field.attrs.borrowed_lifetimes().iter().cloned());
        }
    }
    if lifetimes.iter().any(|b| b.to_string() == "'static") {
        BorrowedLifetimes::Static
    } else {
        BorrowedLifetimes::Borrowed(lifetimes)
    }
}
// The union of lifetimes borrowed by each field of the container.
//
// These turn into bounds on the `'de` lifetime of the Deserialize impl. If
// lifetimes `'a` and `'b` are borrowed but `'c` is not, the impl is:
//
//     impl<'de: 'a + 'b, 'a, 'b, 'c> Deserialize<'de> for S<'a, 'b, 'c>
//
// If any borrowed lifetime is `'static`, then `'de: 'static` would be redundant
// and we use plain `'static` instead of `'de`.
The union of lifetimes borrowed by each field of the container.
These turn into bounds on the `'de` lifetime of the Deserialize impl.




The union of lifetimes borrowed by each field of the container . These turn into bounds on the ` ' de ` lifetime of the Deserialize impl .
fn borrowed_lifetimes(cont: &Container) -> BorrowedLifetimes {
    let mut lifetimes = BTreeSet::new();
    for field in cont.data.all_fields() {
        if !field.attrs.skip_deserializing() {
            lifetimes.extend(field.attrs.borrowed_lifetimes().iter().cloned());
        }
    }
    if lifetimes.iter().any(|b| b.to_string() == "'static") {
        BorrowedLifetimes::Static
    } else {
        BorrowedLifetimes::Borrowed(lifetimes)
    }
}
fn borrowed_lifetimes ( cont : & Container ) -> BorrowedLifetimes { let mut lifetimes = BTreeSet :: new ( ) ; for field in cont . data . all_fields ( ) { if ! field . attrs . skip_deserializing ( ) { lifetimes . extend ( field . attrs . borrowed_lifetimes ( ) . iter ( ) . cloned ( ) ) ; } } if lifetimes . iter ( ) . any ( | b | b . to_string ( ) == " " ) { BorrowedLifetimes :: Static } else { BorrowedLifetimes :: Borrowed ( lifetimes ) } }
The union of lifetimes borrowed by each field of the container.
The union of lifetimes borrowed by each field of the container .
cont
&Container
cont
&Container