Enum obs_wrapper::string::ObsString
source · [−]Variants
Static(&'static str)
Dynamic(CString)
Implementations
sourceimpl ObsString
impl ObsString
sourcepub const unsafe fn from_nul_terminted_str(string: &'static str) -> Self
pub const unsafe fn from_nul_terminted_str(string: &'static str) -> Self
Safety
Does no checks for nul terminated strings. This could cause memory overruns if used incorrectly.
pub fn as_str(&self) -> &str
pub fn as_ptr(&self) -> *const c_char
pub fn ptr_or_null(opt: &Option<Self>) -> *const c_char
Trait Implementations
sourceimpl ListType for ObsString
impl ListType for ObsString
fn format() -> ComboFormat
fn push_into(self, ptr: *mut obs_property_t, name: ObsString)
fn insert_into(self, ptr: *mut obs_property_t, name: ObsString, index: usize)
impl Eq for ObsString
impl StructuralEq for ObsString
impl StructuralPartialEq for ObsString
Auto Trait Implementations
impl RefUnwindSafe for ObsString
impl Send for ObsString
impl Sync for ObsString
impl Unpin for ObsString
impl UnwindSafe for ObsString
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more