Struct rclrust::ParameterValue
source · [−]pub struct ParameterValue(_);
Implementations
sourceimpl ParameterValue
impl ParameterValue
pub const fn new(value: RclParameterValue) -> Self
pub fn not_set() -> Self
pub fn bool(v: bool) -> Self
pub fn integer<T: Into<i64>>(v: T) -> Self
pub fn double<T: Into<f64>>(v: T) -> Self
pub fn string<T: Into<String>>(v: T) -> Self
pub fn byte_array<T: Into<Vec<u8>>>(v: T) -> Self
pub fn bool_array<T: Into<Vec<bool>>>(v: T) -> Self
pub fn integer_array<T: Into<Vec<i64>>>(v: T) -> Self
pub fn double_array<T: Into<Vec<f64>>>(v: T) -> Self
pub fn string_array(v: Vec<String>) -> Self
pub fn get_type(&self) -> ParameterType
pub fn get_value(&self) -> Option<Variant>
Trait Implementations
sourceimpl Clone for ParameterValue
impl Clone for ParameterValue
sourcefn clone(&self) -> ParameterValue
fn clone(&self) -> ParameterValue
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ParameterValue
impl Debug for ParameterValue
sourceimpl Default for ParameterValue
impl Default for ParameterValue
sourcefn default() -> ParameterValue
fn default() -> ParameterValue
Returns the “default value” for a type. Read more
sourceimpl Display for ParameterValue
impl Display for ParameterValue
sourceimpl From<&'_ rcl_variant_t> for ParameterValue
impl From<&'_ rcl_variant_t> for ParameterValue
sourcefn from(v: &rcl_variant_t) -> Self
fn from(v: &rcl_variant_t) -> Self
Converts to this type from the input type.
sourceimpl From<ParameterValue> for ParameterValue
impl From<ParameterValue> for ParameterValue
sourcefn from(v: RclParameterValue) -> Self
fn from(v: RclParameterValue) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<ParameterValue> for ParameterValue
impl PartialEq<ParameterValue> for ParameterValue
sourcefn eq(&self, other: &ParameterValue) -> bool
fn eq(&self, other: &ParameterValue) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ParameterValue) -> bool
fn ne(&self, other: &ParameterValue) -> bool
This method tests for !=
.
impl StructuralPartialEq for ParameterValue
Auto Trait Implementations
impl RefUnwindSafe for ParameterValue
impl Send for ParameterValue
impl Sync for ParameterValue
impl Unpin for ParameterValue
impl UnwindSafe for ParameterValue
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more