pub struct Searcher { /* private fields */ }Expand description
ip2region searcher
ip2region 搜索器
Implementations§
Source§impl Searcher
impl Searcher
Sourcepub fn vector_index(&self) -> Vec<u8> ⓘ
pub fn vector_index(&self) -> Vec<u8> ⓘ
vector index
Sourcepub fn search(&self, ip_v4: &str) -> Result<String, Box<dyn Error>>
pub fn search(&self, ip_v4: &str) -> Result<String, Box<dyn Error>>
Search IP area information
搜索IP区域信息
Trait Implementations§
impl StructuralPartialEq for Searcher
Auto Trait Implementations§
impl Freeze for Searcher
impl RefUnwindSafe for Searcher
impl Send for Searcher
impl Sync for Searcher
impl Unpin for Searcher
impl UnwindSafe for Searcher
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more