strings icon indicating copy to clipboard operation
strings copied to clipboard

Request: conversion from Cow

Open nanoqsh opened this issue 2 years ago • 0 comments

It would be cool to have these methods

impl<'a, Buf> YarnBox<'a, Buf> {
    pub fn from_cow(c: Cow<'a, Buf>) -> Self {/***/}
}

impl<'a, Buf> From<Cow<'a, Buf>> for YarnBox<'a, Buf> {/***/}

Also, can I somehow find out the type of a Yarn value: borrowed, inlined, owned? Thanks for the great and useful library!

nanoqsh avatar Oct 28 '23 03:10 nanoqsh