pub struct DeclaredParams { /* private fields */ }Expand description
The declared parameters of every node in an image whose contract has
params:.
nodes is (node FQN, contract), where the contract is what a refusal
names; params is (node FQN, parameter name, rcl_interfaces type code).
Implementations§
Source§impl DeclaredParams
impl DeclaredParams
pub const fn new( nodes: &'static [(&'static str, &'static str)], params: &'static [(&'static str, &'static str, u8)], ) -> Self
pub fn is_empty(&self) -> bool
Sourcepub fn check(
&self,
namespace: &str,
node_name: &str,
param: &str,
ty: ParameterType,
) -> Result<(), DeclaredParamMismatch>
pub fn check( &self, namespace: &str, node_name: &str, param: &str, ty: ParameterType, ) -> Result<(), DeclaredParamMismatch>
Check one declaration by the node namespace + node_name.
Ok when the node’s contract has no params:, when the name is
exempt, or when the contract declares the name with this
type.
Trait Implementations§
Source§impl Clone for DeclaredParams
impl Clone for DeclaredParams
Source§fn clone(&self) -> DeclaredParams
fn clone(&self) -> DeclaredParams
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DeclaredParams
Source§impl Debug for DeclaredParams
impl Debug for DeclaredParams
Source§impl Default for DeclaredParams
impl Default for DeclaredParams
Source§fn default() -> DeclaredParams
fn default() -> DeclaredParams
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DeclaredParams
impl RefUnwindSafe for DeclaredParams
impl Send for DeclaredParams
impl Sync for DeclaredParams
impl Unpin for DeclaredParams
impl UnsafeUnpin for DeclaredParams
impl UnwindSafe for DeclaredParams
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