pub struct OsdString(pub String);
Expand description
A wrapper around String
for mpv OSD property strings. See Format::OSD_STRING
.
It represents an OSD property string, like using ${property}
in input.conf
.
See the mpv docs on raw and formatted properties.
In many cases, this is the same as the raw string, but in other cases it’s formatted for display on OSD.
It’s intended to be human-readable. Do not attempt to parse these strings.
Tuple Fields§
§0: String
Trait Implementations§
Source§impl MpvFormat for OsdString
impl MpvFormat for OsdString
Source§const MPV_FORMAT: Format = Format::OSD_STRING
const MPV_FORMAT: Format = Format::OSD_STRING
Defines the
mpv_format
used with mpv when transferring and requesting data.impl MpvRecv for OsdString
impl MpvSend for OsdString
Auto Trait Implementations§
impl Freeze for OsdString
impl RefUnwindSafe for OsdString
impl Send for OsdString
impl Sync for OsdString
impl Unpin for OsdString
impl UnwindSafe for OsdString
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more