pub struct DCFileConfig {
pub dc_multiple_inheritance: bool,
pub dc_sort_inheritance_by_file: bool,
pub dc_virtual_inheritance: bool,
}
Expand description
Stored in the crate::dcfile::DCFile
structure.
Configuration variables to how the DC parser pipeline handles the semantics of the DC file(s) being read.
Fields§
§dc_multiple_inheritance: bool
Set this true to support multiple inheritance in the dc file. If this is false, the old way, multiple inheritance is not supported, but field numbers will be numbered sequentially, which may be required to support old code that assumed this.
dc_sort_inheritance_by_file: bool
This is a temporary hack. This should be true if you are using version 1.42 of the otp_server.exe binary, which sorted inherited fields based on the order of the classes within the DC file, rather than based on the order in which the references are made within the class.
dc_virtual_inheritance: bool
Set this true to support proper virtual inheritance in the dc file, so that diamond-of-death type constructs can be used. This also enables shadowing (overloading) of inherited method names from a base class.
Trait Implementations§
Source§impl Clone for DCFileConfig
impl Clone for DCFileConfig
Source§fn clone(&self) -> DCFileConfig
fn clone(&self) -> DCFileConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for DCFileConfig
impl Debug for DCFileConfig
Source§impl Default for DCFileConfig
Creates the config struct with Panda’s defaults.
impl Default for DCFileConfig
Creates the config struct with Panda’s defaults.