Sign in

    clone

    Clone trait for multi-threaded programming.

    clone
    multithreading
    Download zip
    Version
    0.1.0
    License
    Apache-2.0
    Last updated
    last year
    Downloads
    35

    No dependencies

    #illusory0x0/clone

    The purpose of this repository is to be used in a multi-threaded environment with a native backend. Even though it is an immutable container, the memory management will still modify the rc, causing a race condition.

    So there is no trait to track the mutuality of the container.

    Clone

    pub(open) trait Clone {
    clone(Self) -> Self
    }

    impl Clone for Unit
    impl Clone for Bool
    impl Clone for Byte
    impl Clone for Char
    impl Clone for Int
    impl Clone for Int16
    impl Clone for Int64
    impl Clone for UInt
    impl Clone for UInt16
    impl Clone for UInt64
    impl Clone for Float
    impl Clone for Double
    impl Clone for String
    impl Clone for Option[A]
    impl Clone for Result[A, B]
    impl Clone for FixedArray[A]
    impl Clone for Bytes
    impl Clone for Ref[A]
    impl Clone for Array[A]
    impl Clone for Map[K, V]
    impl Clone for T[A]
    impl Clone for T[K, V]
    impl Clone for T[A]
    impl Clone for T[K, V]
    impl Clone for Tuple2[A, B]
    impl Clone for Tuple3[A, B, C]
    impl Clone for Tuple4[A, B, C, D]
    impl Clone for Tuple5[A, B, C, D, E]
    impl Clone for Tuple6[A, B, C, D, E, F]
    impl Clone for Tuple7[A, B, C, D, E, F, G]
    impl Clone for Tuple8[A, B, C, D, E, F, G, H]
    impl Clone for Tuple9[A, B, C, D, E, F, G, H, I]
    impl Clone for Tuple10[A, B, C, D, E, F, G, H, I, J]
    impl Clone for Tuple11[A, B, C, D, E, F, G, H, I, J, K]
    impl Clone for Tuple12[A, B, C, D, E, F, G, H, I, J, K, L]
    impl Clone for Tuple13[A, B, C, D, E, F, G, H, I, J, K, L, M]
    impl Clone for Tuple14[A, B, C, D, E, F, G, H, I, J, K, L, M, N]

    Powered by MoonBit

    Site sourceReport issuePackagesBuild queueSkillsStatistics

    © 2026 mooncakes.io