pub struct DebugChannel(/* private fields */);Expand description
One WINEDEBUG entry of a rule, such as +relay or warn-heap: not
empty, without , and without a NUL. The text is kept as written; Wine
reads it.
A , separates the entries of WINEDEBUG, so the text after one would
be an entry of its own, which the <exe>: scope of
Table::winedebug does not reach.
Implementations§
Source§impl DebugChannel
impl DebugChannel
Sourcepub fn new(text: impl Into<String>) -> Result<Self, FieldError>
pub fn new(text: impl Into<String>) -> Result<Self, FieldError>
text as a WINEDEBUG entry.
§Errors
FieldError::EmptyDebugChannel for an empty text,
FieldError::CommaInDebugChannel for one with a ,,
FieldError::Nul for one with a NUL.
Trait Implementations§
Source§impl Clone for DebugChannel
impl Clone for DebugChannel
Source§fn clone(&self) -> DebugChannel
fn clone(&self) -> DebugChannel
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DebugChannel
impl Debug for DebugChannel
Source§impl Display for DebugChannel
impl Display for DebugChannel
impl Eq for DebugChannel
Source§impl FromStr for DebugChannel
impl FromStr for DebugChannel
Source§impl Hash for DebugChannel
impl Hash for DebugChannel
Source§impl PartialEq for DebugChannel
impl PartialEq for DebugChannel
Source§impl PartialEq<&str> for DebugChannel
impl PartialEq<&str> for DebugChannel
impl StructuralPartialEq for DebugChannel
Auto Trait Implementations§
impl Freeze for DebugChannel
impl RefUnwindSafe for DebugChannel
impl Send for DebugChannel
impl Sync for DebugChannel
impl Unpin for DebugChannel
impl UnsafeUnpin for DebugChannel
impl UnwindSafe for DebugChannel
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