Skip to main content

unop

Struct unop 

Source
#[repr(C)]
pub struct unop { pub op_next: *mut OP, pub op_sibparent: *mut OP, pub op_ppaddr: Option<unsafe extern "C" fn(my_perl: *mut PerlInterpreter) -> *mut OP>, pub op_targ: PADOFFSET, pub _bitfield_align_1: [u16; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2]>, pub op_flags: U8, pub op_private: U8, pub op_first: *mut OP, }

Fields§

§op_next: *mut OP§op_sibparent: *mut OP§op_ppaddr: Option<unsafe extern "C" fn(my_perl: *mut PerlInterpreter) -> *mut OP>§op_targ: PADOFFSET§_bitfield_align_1: [u16; 0]§_bitfield_1: __BindgenBitfieldUnit<[u8; 2]>§op_flags: U8§op_private: U8§op_first: *mut OP

Implementations§

Source§

impl unop

Source

pub fn op_type(&self) -> U16

Source

pub fn set_op_type(&mut self, val: U16)

Source

pub unsafe fn op_type_raw(this: *const Self) -> U16

Source

pub unsafe fn set_op_type_raw(this: *mut Self, val: U16)

Source

pub fn op_opt(&self) -> U16

Source

pub fn set_op_opt(&mut self, val: U16)

Source

pub unsafe fn op_opt_raw(this: *const Self) -> U16

Source

pub unsafe fn set_op_opt_raw(this: *mut Self, val: U16)

Source

pub fn op_slabbed(&self) -> U16

Source

pub fn set_op_slabbed(&mut self, val: U16)

Source

pub unsafe fn op_slabbed_raw(this: *const Self) -> U16

Source

pub unsafe fn set_op_slabbed_raw(this: *mut Self, val: U16)

Source

pub fn op_savefree(&self) -> U16

Source

pub fn set_op_savefree(&mut self, val: U16)

Source

pub unsafe fn op_savefree_raw(this: *const Self) -> U16

Source

pub unsafe fn set_op_savefree_raw(this: *mut Self, val: U16)

Source

pub fn op_static(&self) -> U16

Source

pub fn set_op_static(&mut self, val: U16)

Source

pub unsafe fn op_static_raw(this: *const Self) -> U16

Source

pub unsafe fn set_op_static_raw(this: *mut Self, val: U16)

Source

pub fn op_folded(&self) -> U16

Source

pub fn set_op_folded(&mut self, val: U16)

Source

pub unsafe fn op_folded_raw(this: *const Self) -> U16

Source

pub unsafe fn set_op_folded_raw(this: *mut Self, val: U16)

Source

pub fn op_moresib(&self) -> U16

Source

pub fn set_op_moresib(&mut self, val: U16)

Source

pub unsafe fn op_moresib_raw(this: *const Self) -> U16

Source

pub unsafe fn set_op_moresib_raw(this: *mut Self, val: U16)

Source

pub fn op_spare(&self) -> U16

Source

pub fn set_op_spare(&mut self, val: U16)

Source

pub unsafe fn op_spare_raw(this: *const Self) -> U16

Source

pub unsafe fn set_op_spare_raw(this: *mut Self, val: U16)

Source

pub fn new_bitfield_1( op_type: U16, op_opt: U16, op_slabbed: U16, op_savefree: U16, op_static: U16, op_folded: U16, op_moresib: U16, op_spare: U16, ) -> __BindgenBitfieldUnit<[u8; 2]>

Trait Implementations§

Source§

impl Clone for unop

Source§

fn clone(&self) -> unop

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for unop

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Ord for unop

Source§

fn cmp(&self, other: &unop) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 (const: unstable) · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 (const: unstable) · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq for unop

Source§

fn eq(&self, other: &unop) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialOrd for unop

Source§

fn partial_cmp(&self, other: &unop) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 (const: unstable) · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 (const: unstable) · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 (const: unstable) · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 (const: unstable) · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl Copy for unop

Source§

impl Eq for unop

Source§

impl StructuralPartialEq for unop

Auto Trait Implementations§

§

impl Freeze for unop

§

impl RefUnwindSafe for unop

§

impl !Send for unop

§

impl !Sync for unop

§

impl Unpin for unop

§

impl UnsafeUnpin for unop

§

impl UnwindSafe for unop

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.