pub struct TileNodeGraphState {
pub nodes: Vec<TileNodeState>,
pub connections: Vec<(u16, u8, u16, u8)>,
pub offset: (i32, i32),
pub selected_node: Option<usize>,
pub preview_mode: u8,
}Fields§
§nodes: Vec<TileNodeState>§connections: Vec<(u16, u8, u16, u8)>§offset: (i32, i32)§selected_node: Option<usize>§preview_mode: u8Implementations§
Source§impl TileNodeGraphState
impl TileNodeGraphState
pub fn from_graph_data(graph_data: &str) -> Self
pub fn ensure_root(&mut self)
Trait Implementations§
Source§impl Clone for TileNodeGraphState
impl Clone for TileNodeGraphState
Source§fn clone(&self) -> TileNodeGraphState
fn clone(&self) -> TileNodeGraphState
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TileNodeGraphState
impl Debug for TileNodeGraphState
Source§impl Default for TileNodeGraphState
impl Default for TileNodeGraphState
Source§fn default() -> TileNodeGraphState
fn default() -> TileNodeGraphState
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TileNodeGraphState
impl<'de> Deserialize<'de> for TileNodeGraphState
Source§fn 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
Auto Trait Implementations§
impl Freeze for TileNodeGraphState
impl RefUnwindSafe for TileNodeGraphState
impl Send for TileNodeGraphState
impl Sync for TileNodeGraphState
impl Unpin for TileNodeGraphState
impl UnsafeUnpin for TileNodeGraphState
impl UnwindSafe for TileNodeGraphState
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more