Skip to content
This repository was archived by the owner on Nov 9, 2025. It is now read-only.
This repository was archived by the owner on Nov 9, 2025. It is now read-only.

impl TextLen for &'_ Arc<String>  #45

Description

@Matthias-Fauconneau

Is this intentionally missing ?
Would be nice :)

impl TextLen for &'_ Arc<String> {
    fn text_len(self) -> TextSize {
        use std::ops::Deref;
        self.deref().text_len()
    }
}

TextSize::of:

Types that don't dereference to str but want to be usable in this constructor can implement TextLen.

But the trait is Sealed without a rationale :(

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions