Struct ldtk2::EnumValueDefinition
source · [−]pub struct EnumValueDefinition {
pub tile_src_rect: Option<Vec<i64>>,
pub color: i64,
pub id: String,
pub tile_id: Option<i64>,
}
Fields
tile_src_rect: Option<Vec<i64>>
An array of 4 Int values that refers to the tile in the tileset image: [ x, y, width, height ]
color: i64
Optional color
id: String
Enum value
tile_id: Option<i64>
The optional ID of the tile
Trait Implementations
sourceimpl Clone for EnumValueDefinition
impl Clone for EnumValueDefinition
sourcefn clone(&self) -> EnumValueDefinition
fn clone(&self) -> EnumValueDefinition
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for EnumValueDefinition
impl Debug for EnumValueDefinition
sourceimpl<'de> Deserialize<'de> for EnumValueDefinition
impl<'de> Deserialize<'de> for EnumValueDefinition
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Serialize for EnumValueDefinition
impl Serialize for EnumValueDefinition
Auto Trait Implementations
impl RefUnwindSafe for EnumValueDefinition
impl Send for EnumValueDefinition
impl Sync for EnumValueDefinition
impl Unpin for EnumValueDefinition
impl UnwindSafe for EnumValueDefinition
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more