-
I'm sorry if this is a very basic Rust question, but I'm trying to get to the contents of the I see the creation of the struct here: https://github.com/diwic/dbus-rs/blob/master/dbus/src/strings.rs#L194-L199 But, it looks like it only has a |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
As seen in the documentation,
Or you can just use any
|
Beta Was this translation helpful? Give feedback.
As seen in the documentation,
Member
has aDeref<Target=str>
, which means that you for the most part can use a&Member
as if it were a&str
. Example:Or you can just use any
str
method on the member directly, like: