pub fn remove(&mut self, domain: &str, path: &str, name: &str) -> Option<Cookie<'static>> {
        #[cfg(not(feature = "preserve_order"))]
        fn map_remove<K, V, Q>(map: &mut Map<K, V>, key: &Q) -> Option<V>
        where
            K: std::borrow::Borrow<Q> + std::cmp::Eq + std::hash::Hash,
            Q: std::cmp::Eq + std::hash::Hash + ?Sized,
        {
            map.remove(key)
        }
        #[cfg(feature = "preserve_order")]
        fn map_remove<K, V, Q>(map: &mut Map<K, V>, key: &Q) -> Option<V>
        where
            K: std::borrow::Borrow<Q> + std::cmp::Eq + std::hash::Hash,
            Q: std::cmp::Eq + std::hash::Hash + ?Sized,
        {
            map.shift_remove(key)
        }

        let (removed, remove_domain) = match self.cookies.get_mut(domain) {
            None => (None, false),
            Some(domain_cookies) => {
                let (removed, remove_path) = match domain_cookies.get_mut(path) {
                    None => (None, false),
                    Some(path_cookies) => {
                        let removed = map_remove(path_cookies, name);
                        (removed, path_cookies.is_empty())
                    }
                };

                if remove_path {
                    map_remove(domain_cookies, path);
                    (removed, domain_cookies.is_empty())
                } else {
                    (removed, false)
                }
            }
        };

        if remove_domain {
            map_remove(&mut self.cookies, domain);
        }

        removed
    }
/// Removes a `Cookie` from the store, returning the `Cookie` if it was in the store
Removes a `Cookie` from the store, returning the `Cookie` if it was in the store
Removes a ` Cookie ` from the store returning the ` Cookie ` if it was in the store
pub fn remove(&mut self, domain: &str, path: &str, name: &str) -> Option<Cookie<'static>> {
        #[cfg(not(feature = "preserve_order"))]
        fn map_remove<K, V, Q>(map: &mut Map<K, V>, key: &Q) -> Option<V>
        where
            K: std::borrow::Borrow<Q> + std::cmp::Eq + std::hash::Hash,
            Q: std::cmp::Eq + std::hash::Hash + ?Sized,
        {
            map.remove(key)
        }
        #[cfg(feature = "preserve_order")]
        fn map_remove<K, V, Q>(map: &mut Map<K, V>, key: &Q) -> Option<V>
        where
            K: std::borrow::Borrow<Q> + std::cmp::Eq + std::hash::Hash,
            Q: std::cmp::Eq + std::hash::Hash + ?Sized,
        {
            map.shift_remove(key)
        }
        let (removed, remove_domain) = match self.cookies.get_mut(domain) {
            None => (None, false),
            Some(domain_cookies) => {
                let (removed, remove_path) = match domain_cookies.get_mut(path) {
                    None => (None, false),
                    Some(path_cookies) => {
                        let removed = map_remove(path_cookies, name);
                        (removed, path_cookies.is_empty())
                    }
                };
                if remove_path {
                    map_remove(domain_cookies, path);
                    (removed, domain_cookies.is_empty())
                } else {
                    (removed, false)
                }
            }
        };
        if remove_domain {
            map_remove(&mut self.cookies, domain);
        }
        removed
    }
pub fn remove ( & mut self , domain : & str , path : & str , name : & str ) -> Option < Cookie < ' static > > { # [ cfg ( not ( feature " " ) ) ] fn map_remove < K , V , Q > ( map : & mut Map < K , V > , key : & Q ) -> Option < V > where K : std :: borrow :: Borrow < Q > + std :: cmp :: Eq + std :: hash :: Hash , Q : std :: cmp :: Eq + std :: hash :: Hash + ? Sized , { map . remove ( key ) } # [ cfg ( feature " " ) ] fn map_remove < K , V , Q > ( map : & mut Map < K , V > , key : & Q ) -> Option < V > where K : std :: borrow :: Borrow < Q > + std :: cmp :: Eq + std :: hash :: Hash , Q : std :: cmp :: Eq + std :: hash :: Hash + ? Sized , { map . shift_remove ( key ) } let ( removed , remove_domain ) = match self . cookies . get_mut ( domain ) { None => ( None , false ) , Some ( domain_cookies ) => { let ( removed , remove_path ) = match domain_cookies . get_mut ( path ) { None => ( None , false ) , Some ( path_cookies ) => { let removed = map_remove ( path_cookies , name ) ; ( removed , path_cookies . is_empty ( ) ) } } ; if remove_path { map_remove ( domain_cookies , path ) ; ( removed , domain_cookies . is_empty ( ) ) } else { ( removed , false ) } } } ; if remove_domain { map_remove ( & mut self . cookies , domain ) ; } removed }
Removes a `Cookie` from the store, returning the `Cookie` if it was in the store
Removes a ` Cookie ` from the store returning the ` Cookie ` if it was in the store
&mut self
domain
&str
path
&str
name
&str