1. Only showing results from lib.rs

    Clear filter to show all search results

  2. Dec 13, 2023This project is an implementation of Copy-On-Write (CoW) or reflinks in Rust. It provides file copy functionalities that are optimized for different file systems and operating systems. Features. Unix/MacOS: Uses the reflink-copy crate for CoW support. Windows: Native implementation supporting ReFS drives (Windows Server 2016+ and Windows 11 Dev ...
  3. Jan 23, 2024This library defines strings with copy-on-write semantics. CowStr. Is a String that can be initialized to a static string or be build dynamically. Its contents can then be immutably shared and reference counted. When mutation is required the string will be copied first. This resembles a improved Arc<Cow<'static, str>> with some differences:
  4. Jul 8, 2024#7 in #copy-on-write. 43 downloads per month Used in 2 crates (via ostd) . MPL-2.0 license . 87KB 1.5K SLoC XArray. XArray is an abstract data type functioning like an expansive array of items where each item must be an 8-byte object, such as Arc<T> or Box<T>.User-stored pointers must have a minimum alignment of 4 bytes. XArray facilitates efficient sequential access to adjacent entries ...
  5. 1 day ago#133 in No standard library. MIT license . 12KB 106 lines. Std-less Cow. This library provides NoStdCow, which is an implementation of a copy-on-write smarter pointer which doesn't rely on std or alloc.. If you have std or alloc available, use alloc::borrow::Cow instead. NoStdCow is more targeted towards embedded systems and alloc::borrow::Cow provides more functionality.
  6. 3 days agoA [SnapBuf] is like a Vec<u8> with cheap snapshotting using copy on write. Internally, the data is broken up into segments that are organized in a tree structure. Only modified subtrees are cloned, so buffers with only little differences can share most of their memory. Moreover, subtrees which contain only zeros take up no memory.
  7. copy on write slices of a string. v 0.2.0 260 # slice # string # cow # copy-on-write # str # text-parser. pom-preview. PEG parser combinators using operator overloading without macros. v 3.0.4-alpha-1 # parser-combinator # operator-overloading # peg # parser # parsing. syntacks. An opinionated parser library for Rust.
  8. 5 days agoFurther, the Text event (representing text) is a small copy-on-write string. The vast majority of text fragments are just slices of the source document. For these, copy-on-write gives a convenient representation that requires no allocation or copying, but allocated strings are available when they're needed. Thus, when rendering text to HTML ...
  9. Dec 29, 2024is almost zero-copy (use of Cow whenever possible) is easy on memory allocation (the API provides a way to reuse buffers) support various encoding (with encoding feature), namespaces resolution, special characters. Syntax is inspired by xml-rs. ... (writer.write_event(Event::Start(elem) ...
  10. Can’t find what you’re looking for?

    Help us improve DuckDuckGo searches with your feedback

Custom date rangeX