#[repr(C)]pub struct cop {Show 16 fields
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 cop_line: line_t,
pub cop_stashoff: PADOFFSET,
pub cop_file: *mut c_char,
pub cop_hints: U32,
pub cop_seq: U32,
pub cop_warnings: *mut c_char,
pub cop_hints_hash: *mut COPHH,
pub cop_features: U32,
}
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
§cop_line: line_t
§cop_stashoff: PADOFFSET
§cop_file: *mut c_char
§cop_hints: U32
§cop_seq: U32
§cop_warnings: *mut c_char
§cop_hints_hash: *mut COPHH
§cop_features: U32
Implementations§
Source§impl cop
impl cop
pub fn op_type(&self) -> U16
pub fn set_op_type(&mut self, val: U16)
pub fn op_opt(&self) -> U16
pub fn set_op_opt(&mut self, val: U16)
pub fn op_slabbed(&self) -> U16
pub fn set_op_slabbed(&mut self, val: U16)
pub fn op_savefree(&self) -> U16
pub fn set_op_savefree(&mut self, val: U16)
pub fn op_static(&self) -> U16
pub fn set_op_static(&mut self, val: U16)
pub fn op_folded(&self) -> U16
pub fn set_op_folded(&mut self, val: U16)
pub fn op_moresib(&self) -> U16
pub fn set_op_moresib(&mut self, val: U16)
pub fn op_spare(&self) -> U16
pub fn set_op_spare(&mut self, val: U16)
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§
Auto Trait Implementations§
impl Freeze for cop
impl RefUnwindSafe for cop
impl !Send for cop
impl !Sync for cop
impl Unpin for cop
impl UnwindSafe for cop
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