pub fn oid(name: &str) -> Result<u32, NameLookupError>Expand description
Returns the OID whose NAMES rendering is name.
Err distinguishes no match from an ambiguous one. A rendering is ambiguous
when several overloads share it, in which case PostgreSQL’s regprocin
likewise refuses to resolve it. The scan is linear because reads of this
direction only happen while decoding text-format input, which is rare
compared to encoding.