pub struct AssignabilityConfig {
pub allow_type_coercion: bool,
pub ignore_sequence_bounds: bool,
pub ignore_string_bounds: bool,
pub ignore_member_names: bool,
pub ignore_literal_names: bool,
pub max_depth: usize,
}Expand description
Configuration for assignability checks.
The fields other than max_depth correspond 1:1 to the flags of the DDS-QoS
TypeConsistencyEnforcement (XTypes §7.6.3.7). TypeMatcher
translates a concrete TCE policy into this struct.
Fields§
§allow_type_coercion: boolAllow type coercion (int32 ↔ int64 etc.)?
ignore_sequence_bounds: boolIgnore sequence bounds (the writer may be larger than the reader).
ignore_string_bounds: boolIgnore string bounds.
ignore_member_names: boolIgnore member names — mutable structs then match
only via the @id member ID, not via the NameHash.
ignore_literal_names: bool@ignore_literal_names globally (XTypes §7.2.4.4.7) — enum compat
compares only ordinal values, not literal names. Additionally
this can be set per EnumTypeFlag::IGNORE_LITERAL_NAMES on a
single side; the disjunction wins.
max_depth: usizeMaximum depth for recursive resolution.
Trait Implementations§
Source§impl Clone for AssignabilityConfig
impl Clone for AssignabilityConfig
Source§fn clone(&self) -> AssignabilityConfig
fn clone(&self) -> AssignabilityConfig
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 AssignabilityConfig
Source§impl Debug for AssignabilityConfig
impl Debug for AssignabilityConfig
Source§impl Default for AssignabilityConfig
impl Default for AssignabilityConfig
impl Eq for AssignabilityConfig
Source§impl PartialEq for AssignabilityConfig
impl PartialEq for AssignabilityConfig
Source§fn eq(&self, other: &AssignabilityConfig) -> bool
fn eq(&self, other: &AssignabilityConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AssignabilityConfig
Auto Trait Implementations§
impl Freeze for AssignabilityConfig
impl RefUnwindSafe for AssignabilityConfig
impl Send for AssignabilityConfig
impl Sync for AssignabilityConfig
impl Unpin for AssignabilityConfig
impl UnsafeUnpin for AssignabilityConfig
impl UnwindSafe for AssignabilityConfig
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