pub struct Dialect {
pub rti: bool,
pub cyclone: bool,
pub fast_dds: bool,
pub open_dds: bool,
pub ros2: bool,
}Expand description
The set of dialects a parse accepts.
Fields§
§rti: boolRTI Connext extensions: keylist.
cyclone: boolCyclone DDS extensions.
fast_dds: booleProsima Fast DDS extensions.
open_dds: boolOpenDDS extensions.
ros2: boolROS 2 dialect: admits unqualified member types that differ only in case
from the member name (e.g., Pose pose;).
Implementations§
Source§impl Dialect
impl Dialect
Sourcepub const STRICT: Self
pub const STRICT: Self
OMG IDL 4.2 and nothing else.
The default, because a file that parses under it is one every other vendor’s compiler also reads.
Sourcepub const ALL_VENDORS: Self
pub const ALL_VENDORS: Self
Every vendor dialect at once.
Sourcepub const fn any_vendor(self) -> bool
pub const fn any_vendor(self) -> bool
Whether any vendor extension is admitted.
Sourcepub const fn flag_name(admitted_by: VendorFlag) -> &'static str
pub const fn flag_name(admitted_by: VendorFlag) -> &'static str
The name of the flag that admits a construct, for a diagnostic that has to say what made a file unportable.
Sourcepub const fn admits(self, flag: VendorFlag) -> bool
pub const fn admits(self, flag: VendorFlag) -> bool
Whether this dialect admits flag.
Trait Implementations§
impl Copy for Dialect
impl Eq for Dialect
impl StructuralPartialEq for Dialect
Auto Trait Implementations§
impl Freeze for Dialect
impl RefUnwindSafe for Dialect
impl Send for Dialect
impl Sync for Dialect
impl Unpin for Dialect
impl UnsafeUnpin for Dialect
impl UnwindSafe for Dialect
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