// Copyright 2022 System76 // SPDX-License-Identifier: MPL-2.0 use static_rc::StaticRc; /// Uses [`StaticRc`] to create two halves of value with shared ownership, with no runtime reference counting required. pub(crate) fn static_rc_halves(value: T) -> (StaticRc, StaticRc) { StaticRc::split::<1, 2>(StaticRc::::new(value)) }