#[repr(u32)]pub enum rb_warning_category_t {
RB_WARN_CATEGORY_NONE = 0,
RB_WARN_CATEGORY_DEPRECATED = 1,
RB_WARN_CATEGORY_EXPERIMENTAL = 2,
RB_WARN_CATEGORY_PERFORMANCE = 3,
RB_WARN_CATEGORY_DEFAULT_BITS = 6,
RB_WARN_CATEGORY_ALL_BITS = 14,
}Expand description
Warning categories. A warning issued using this API can be selectively
requested / suppressed by the end-users. For instance passing
-W:no-deprecated to the ruby process would suppress those warnings in
deprecated category.
§@warning There is no way to declare a new category (for now).
Generated by rb-sys for Ruby mri-x86_64-linux-gnu-3.3.8
Variants§
RB_WARN_CATEGORY_NONE = 0
RB_WARN_CATEGORY_DEPRECATED = 1
RB_WARN_CATEGORY_EXPERIMENTAL = 2
RB_WARN_CATEGORY_PERFORMANCE = 3
§Warning is for performance issues (not enabled by -w).
Generated by rb-sys for Ruby mri-x86_64-linux-gnu-3.3.8
RB_WARN_CATEGORY_DEFAULT_BITS = 6
§Warning is for performance issues (not enabled by -w).
Generated by rb-sys for Ruby mri-x86_64-linux-gnu-3.3.8
RB_WARN_CATEGORY_ALL_BITS = 14
Trait Implementations§
Source§impl Clone for rb_warning_category_t
impl Clone for rb_warning_category_t
Source§fn clone(&self) -> rb_warning_category_t
fn clone(&self) -> rb_warning_category_t
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 moreimpl Copy for rb_warning_category_t
Source§impl Debug for rb_warning_category_t
impl Debug for rb_warning_category_t
impl Eq for rb_warning_category_t
Source§impl Hash for rb_warning_category_t
impl Hash for rb_warning_category_t
Source§impl PartialEq for rb_warning_category_t
impl PartialEq for rb_warning_category_t
impl StructuralPartialEq for rb_warning_category_t
Auto Trait Implementations§
impl Freeze for rb_warning_category_t
impl RefUnwindSafe for rb_warning_category_t
impl Send for rb_warning_category_t
impl Sync for rb_warning_category_t
impl Unpin for rb_warning_category_t
impl UnsafeUnpin for rb_warning_category_t
impl UnwindSafe for rb_warning_category_t
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