pub struct Param {
pub name: String,
pub value: ParamValue,
pub flags: u32,
pub base: i32,
pub width: i32,
pub level: i32,
pub ename: Option<String>,
pub old: Option<Box<Param>>,
}Fields§
§name: String§value: ParamValue§flags: u32§base: i32§width: i32§level: i32§ename: Option<String>§old: Option<Box<Param>>Implementations§
Source§impl Param
impl Param
pub fn new_scalar(name: &str, value: &str) -> Self
pub fn new_integer(name: &str, value: i64) -> Self
pub fn new_float(name: &str, value: f64) -> Self
pub fn new_array(name: &str, value: Vec<String>) -> Self
pub fn new_assoc(name: &str, value: HashMap<String, String>) -> Self
pub fn new_nameref(name: &str, target: &str) -> Self
pub fn is_readonly(&self) -> bool
pub fn is_exported(&self) -> bool
pub fn is_local(&self) -> bool
pub fn is_special(&self) -> bool
pub fn is_integer(&self) -> bool
pub fn is_float(&self) -> bool
pub fn is_array(&self) -> bool
pub fn is_assoc(&self) -> bool
pub fn is_nameref(&self) -> bool
pub fn is_unset(&self) -> bool
pub fn is_tied(&self) -> bool
pub fn is_unique(&self) -> bool
Sourcepub fn get_str_value(&self) -> String
pub fn get_str_value(&self) -> String
Get the string representation, applying formatting flags
Sourcepub fn get_int_str(&self) -> String
pub fn get_int_str(&self) -> String
Get the integer representation with base formatting
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Param
impl RefUnwindSafe for Param
impl Send for Param
impl Sync for Param
impl Unpin for Param
impl UnsafeUnpin for Param
impl UnwindSafe for Param
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more