Scott Meeuwsen

Results 36 comments of Scott Meeuwsen

Maybe you are talking about onboarding? If you use `from_static` or `local_str!/shared_str!` these are compile time wrapper over the literal. Zero cost. They interop with other Local/Shared strings.

Might need to see an example sometime. For some reason I'm just not getting it. If you borrow, you'd need to have a copy of the owned item or else...

Ok, if you can point me to a worked example or spot in the source that illustrates this. I'm not sure I 100% follow the use case (because in my...

I was thinking the other way around (passing in, not returning). I can definitely see use cases where you want to return a 'view' into something but don't necessarily want...

You kinda just described my goal with `FlexStr` :-) Just not done yet. Well, not exactly I guess. I'm going more for easy `String` replacement with better performance in immutable...

I figured out how to support borrowed strings. In hindsight it was obvious. Will be in next release.

I'm playing with this in a branch right now. I definitely want to add this. I'm just trying to work out the design. Generics are starting to look nasty and...

I should probably add that if you are willing to use `FlexStr` in `Clap`... let's just say I'm very interested to hear what you need :-)

`BStr`, `[u8]` and `CStr` should be doable. I'm not seeing a way to do `OsStr` unless you have some ideas I'm not thinking of. The problem is that the type...

> Even the `os_str_bytes` lib takes the safe way out and uses stdlib, fine for conversion, but not for realtime deref from `[u8]` to `OsStr` Great little crate, not much...