pub fn find_incremental_id(&self, typ: &syn::Type) -> Option<&IncrementalId> {
        if let syn::Type::Path(syn::TypePath { qself: None, path }) = typ {
            if let Some(ident) = path.get_ident() {
                for id in &self.incremental_ids {
                    if &id.name == ident {
                        return Some(id);
                    }
                }
            }
        }
        None
    }
/// Finds the `IncrementalId` struct that generates objects of the given type.
Finds the `IncrementalId` struct that generates objects of the given type.
Finds the ` IncrementalId ` struct that generates objects of the given type .
pub fn find_incremental_id(&self, typ: &syn::Type) -> Option<&IncrementalId> {
        if let syn::Type::Path(syn::TypePath { qself: None, path }) = typ {
            if let Some(ident) = path.get_ident() {
                for id in &self.incremental_ids {
                    if &id.name == ident {
                        return Some(id);
                    }
                }
            }
        }
        None
    }
pub fn find_incremental_id ( & self , typ : & syn :: Type ) -> Option < & IncrementalId > { if let syn :: Type :: Path ( syn :: TypePath { qself : None , path } ) = typ { if let Some ( ident ) = path . get_ident ( ) { for id in & self . incremental_ids { if & id . name == ident { return Some ( id ) ; } } } } None }
Finds the `IncrementalId` struct that generates objects of the given type.
Finds the ` IncrementalId ` struct that generates objects of the given type .
&self
typ
&syn::Type