#[repr(C)]pub struct NodeGraph {
pub node_types: NodeTypeIdInfoMapVec,
pub input_output_types: InputOutputTypeIdInfoMapVec,
pub nodes: NodeIdNodeMapVec,
pub allow_multiple_root_nodes: bool,
pub offset: LogicalPosition,
pub style: NodeGraphStyle,
pub callbacks: NodeGraphCallbacks,
pub add_node_str: AzString,
pub scale_factor: f32,
}Expand description
Same as the NodeGraph but without generics and without the actual data
Fields§
§node_types: NodeTypeIdInfoMapVec§input_output_types: InputOutputTypeIdInfoMapVec§nodes: NodeIdNodeMapVec§allow_multiple_root_nodes: bool§offset: LogicalPosition§style: NodeGraphStyle§callbacks: NodeGraphCallbacks§add_node_str: AzString§scale_factor: f32Implementations§
Source§impl NodeGraph
impl NodeGraph
Sourcepub fn generate_unique_node_id(&self) -> NodeGraphNodeId
pub fn generate_unique_node_id(&self) -> NodeGraphNodeId
Generates a new NodeId that is unique in the graph
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NodeGraph
impl RefUnwindSafe for NodeGraph
impl Send for NodeGraph
impl Sync for NodeGraph
impl Unpin for NodeGraph
impl UnwindSafe for NodeGraph
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