Skip to content

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

Open
@Matthias-Fauconneau

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 :(

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