pub enum RustMapForm {
Entries,
BTreeMap,
}Expand description
How the generated Rust holds an IDL map (Config::rust_map).
How the Rust column holds an IDL map.
XTypes 1.3 §7.5.1.3.6: “In all languages for which no language-specific mapping is
specified, the language binding for map types shall be based on the equivalent IDL definition
given in 7.4.1.1.4”, the sequence of MapEntry structures; that is the default.
RustMapForm::BTreeMap is the idiomatic container and a named option: it has the
operations of a map and loses the order the entries were put in, which is ascending by key.
Variants§
Trait Implementations§
Source§impl Clone for RustMapForm
impl Clone for RustMapForm
Source§fn clone(&self) -> RustMapForm
fn clone(&self) -> RustMapForm
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 RustMapForm
Source§impl Debug for RustMapForm
impl Debug for RustMapForm
Source§impl Default for RustMapForm
impl Default for RustMapForm
Source§fn default() -> RustMapForm
fn default() -> RustMapForm
Returns the “default value” for a type. Read more
impl Eq for RustMapForm
Source§impl PartialEq for RustMapForm
impl PartialEq for RustMapForm
impl StructuralPartialEq for RustMapForm
Auto Trait Implementations§
impl Freeze for RustMapForm
impl RefUnwindSafe for RustMapForm
impl Send for RustMapForm
impl Sync for RustMapForm
impl Unpin for RustMapForm
impl UnsafeUnpin for RustMapForm
impl UnwindSafe for RustMapForm
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