Skip to main content

FillClone

Trait FillClone 

Source
pub trait FillClone {
    // Required method
    fn fill_clone(&self) -> Self;
}
Expand description

A FILL-SLOT copy: collections copy DEEP, so every slot of a fill (n copies of x, [x] * n) is an independent row — never n aliases of one row (the classic [[0]] * 3 footgun is designed out). Scalars copy plain. Mirrors the tree-walker’s recursive RuntimeValue::deep_clone.

Required Methods§

Source

fn fill_clone(&self) -> Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl FillClone for bool

Source§

fn fill_clone(&self) -> Self

Source§

impl FillClone for char

Source§

fn fill_clone(&self) -> Self

Source§

impl FillClone for f32

Source§

fn fill_clone(&self) -> Self

Source§

impl FillClone for f64

Source§

fn fill_clone(&self) -> Self

Source§

impl FillClone for i8

Source§

fn fill_clone(&self) -> Self

Source§

impl FillClone for i16

Source§

fn fill_clone(&self) -> Self

Source§

impl FillClone for i32

Source§

fn fill_clone(&self) -> Self

Source§

impl FillClone for i64

Source§

fn fill_clone(&self) -> Self

Source§

impl FillClone for i128

Source§

fn fill_clone(&self) -> Self

Source§

impl FillClone for u8

Source§

fn fill_clone(&self) -> Self

Source§

impl FillClone for u16

Source§

fn fill_clone(&self) -> Self

Source§

impl FillClone for u32

Source§

fn fill_clone(&self) -> Self

Source§

impl FillClone for u64

Source§

fn fill_clone(&self) -> Self

Source§

impl FillClone for usize

Source§

fn fill_clone(&self) -> Self

Source§

impl FillClone for String

Source§

fn fill_clone(&self) -> Self

Implementors§