pub struct ParamList {
pub entries: Vec<(String, Option<String>)>,
}Expand description
An ordered list of parsed proj-string parameters.
Each entry is a (key, optional value) pair preserving source order, so that
pipeline tokens (proj=pipeline, step, inv) keep their relative positions.
Fields§
§entries: Vec<(String, Option<String>)>Ordered (key, optional value) entries.
Implementations§
Source§impl ParamList
impl ParamList
Sourcepub fn get_str(&self, key: &str) -> Option<&str>
pub fn get_str(&self, key: &str) -> Option<&str>
Return the string value of the first matching key.
A bare key (no =) yields Some(""); an absent key yields None.
Sourcepub fn get_f64(&self, key: &str) -> Option<f64>
pub fn get_f64(&self, key: &str) -> Option<f64>
Return the value of the first matching key parsed as f64.
Falls back to a leading-number parse when a strict parse fails.
Sourcepub fn get_dms(&self, key: &str) -> Option<f64>
pub fn get_dms(&self, key: &str) -> Option<f64>
Return the value of the first matching key parsed as DMS radians.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ParamList
impl RefUnwindSafe for ParamList
impl Send for ParamList
impl Sync for ParamList
impl Unpin for ParamList
impl UnsafeUnpin for ParamList
impl UnwindSafe for ParamList
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