pub struct IntentParameter { /* private fields */ }Expand description
Wraps INParameter.
Implementations§
Source§impl IntentParameter
impl IntentParameter
Sourcepub fn new(
intent_class_name: &str,
key_path: &str,
) -> Result<Self, IntentsError>
pub fn new( intent_class_name: &str, key_path: &str, ) -> Result<Self, IntentsError>
Creates a INParameter wrapper.
Sourcepub fn class_name(&self) -> String
pub fn class_name(&self) -> String
Returns the Objective-C class name for this INParameter instance.
Sourcepub fn parameter_class_name(&self) -> Option<String>
pub fn parameter_class_name(&self) -> Option<String>
Returns the corresponding value from INParameter.
Sourcepub fn parameter_key_path(&self) -> Option<String>
pub fn parameter_key_path(&self) -> Option<String>
Returns the corresponding value from INParameter.
Sourcepub fn is_equal_to_parameter(&self, other: &Self) -> bool
pub fn is_equal_to_parameter(&self, other: &Self) -> bool
Returns the corresponding boolean value from INParameter.
Sourcepub fn set_index_for_sub_key_path(
&mut self,
index: usize,
sub_key_path: &str,
) -> Result<(), IntentsError>
pub fn set_index_for_sub_key_path( &mut self, index: usize, sub_key_path: &str, ) -> Result<(), IntentsError>
Sets the corresponding index_for_sub_key_path value on INParameter.
Sourcepub fn index_for_sub_key_path(
&self,
sub_key_path: &str,
) -> Result<Option<usize>, IntentsError>
pub fn index_for_sub_key_path( &self, sub_key_path: &str, ) -> Result<Option<usize>, IntentsError>
Returns the corresponding value from INParameter.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for IntentParameter
impl RefUnwindSafe for IntentParameter
impl !Send for IntentParameter
impl !Sync for IntentParameter
impl Unpin for IntentParameter
impl UnsafeUnpin for IntentParameter
impl UnwindSafe for IntentParameter
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