pub struct RenderBatch {
pub nodes: Vec<BatchedNode>,
pub edges: Vec<BatchedEdge>,
pub background_config: Option<BackgroundConfig>,
}Expand description
Batching system for efficient rendering
Fields§
§nodes: Vec<BatchedNode>§edges: Vec<BatchedEdge>§background_config: Option<BackgroundConfig>Implementations§
Source§impl RenderBatch
impl RenderBatch
pub fn new() -> Self
pub fn add_node(&mut self, node: BatchedNode)
pub fn add_edge(&mut self, edge: BatchedEdge)
pub fn sort_by_z_index(&mut self)
pub fn clear(&mut self)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RenderBatch
impl RefUnwindSafe for RenderBatch
impl Send for RenderBatch
impl Sync for RenderBatch
impl Unpin for RenderBatch
impl UnwindSafe for RenderBatch
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