Struct ldtk2::ForcedRefs

source ·
pub struct ForcedRefs {
Show 28 fields pub auto_layer_rule_group: Option<AutoLayerRuleGroup>, pub auto_rule_def: Option<AutoLayerRuleDefinition>, pub custom_command: Option<LdtkCustomCommand>, pub definitions: Option<Definitions>, pub entity_def: Option<EntityDefinition>, pub entity_instance: Option<EntityInstance>, pub entity_reference_infos: Option<ReferenceToAnEntityInstance>, pub enum_def: Option<EnumDefinition>, pub enum_def_values: Option<EnumValueDefinition>, pub enum_tag_value: Option<EnumTagValue>, pub field_def: Option<FieldDefinition>, pub field_instance: Option<FieldInstance>, pub grid_point: Option<GridPoint>, pub int_grid_value_def: Option<IntGridValueDefinition>, pub int_grid_value_group_def: Option<IntGridValueGroupDefinition>, pub int_grid_value_instance: Option<IntGridValueInstance>, pub layer_def: Option<LayerDefinition>, pub layer_instance: Option<LayerInstance>, pub level: Option<Level>, pub level_bg_pos_infos: Option<LevelBackgroundPosition>, pub neighbour_level: Option<NeighbourLevel>, pub table_of_content_entry: Option<LdtkTableOfContentEntry>, pub tile: Option<TileInstance>, pub tile_custom_metadata: Option<TileCustomMetadata>, pub tileset_def: Option<TilesetDefinition>, pub tileset_rect: Option<TilesetRectangle>, pub toc_instance_data: Option<LdtkTocInstanceData>, pub world: Option<World>,
}
Expand description

This object is not actually used by LDtk. It ONLY exists to force explicit references to all types, to make sure QuickType finds them and integrate all of them. Otherwise, Quicktype will drop types that are not explicitely used.

Fields§

§auto_layer_rule_group: Option<AutoLayerRuleGroup>§auto_rule_def: Option<AutoLayerRuleDefinition>§custom_command: Option<LdtkCustomCommand>§definitions: Option<Definitions>§entity_def: Option<EntityDefinition>§entity_instance: Option<EntityInstance>§entity_reference_infos: Option<ReferenceToAnEntityInstance>§enum_def: Option<EnumDefinition>§enum_def_values: Option<EnumValueDefinition>§enum_tag_value: Option<EnumTagValue>§field_def: Option<FieldDefinition>§field_instance: Option<FieldInstance>§grid_point: Option<GridPoint>§int_grid_value_def: Option<IntGridValueDefinition>§int_grid_value_group_def: Option<IntGridValueGroupDefinition>§int_grid_value_instance: Option<IntGridValueInstance>§layer_def: Option<LayerDefinition>§layer_instance: Option<LayerInstance>§level: Option<Level>§level_bg_pos_infos: Option<LevelBackgroundPosition>§neighbour_level: Option<NeighbourLevel>§table_of_content_entry: Option<LdtkTableOfContentEntry>§tile: Option<TileInstance>§tile_custom_metadata: Option<TileCustomMetadata>§tileset_def: Option<TilesetDefinition>§tileset_rect: Option<TilesetRectangle>§toc_instance_data: Option<LdtkTocInstanceData>§world: Option<World>

Trait Implementations§

source§

impl Clone for ForcedRefs

source§

fn clone(&self) -> ForcedRefs

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for ForcedRefs

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for ForcedRefs

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Serialize for ForcedRefs

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,