Skip to content

Request: conversion from Cow #4

@nanoqsh

Description

@nanoqsh

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions