Struct ipdb::reader::Reader [−][src]
pub struct Reader { /* fields omitted */ }
Implementations
impl Reader
[src]
pub fn open_file<T: AsRef<Path>>(file: T) -> Result<Reader>
[src]
pub fn is_ipv4(&self) -> bool
[src]
pub fn is_ipv6(&self) -> bool
[src]
pub fn find(&self, addr: &str, language: &str) -> Result<Vec<&str>>
[src]
pub fn find_city_info(&self, addr: &str, language: &str) -> Result<CityInfo<'_>>
[src]
pub fn find_district_info(
&self,
addr: &str,
language: &str
) -> Result<DistrictInfo<'_>>
[src]
&self,
addr: &str,
language: &str
) -> Result<DistrictInfo<'_>>
pub fn find_idc_info(&self, addr: &str, language: &str) -> Result<IdcInfo<'_>>
[src]
pub fn find_base_station_info(
&self,
addr: &str,
language: &str
) -> Result<BaseStationInfo<'_>>
[src]
&self,
addr: &str,
language: &str
) -> Result<BaseStationInfo<'_>>
pub fn find_map(
&self,
addr: &str,
language: &str
) -> Result<BTreeMap<String, &str>>
[src]
&self,
addr: &str,
language: &str
) -> Result<BTreeMap<String, &str>>
Auto Trait Implementations
impl RefUnwindSafe for Reader
impl Send for Reader
impl Sync for Reader
impl Unpin for Reader
impl UnwindSafe for Reader
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,