pio_chip

Struct pio_chip 

Source
#[repr(C)]
pub struct pio_chip {
Show 98 fields pub name: *const c_char, pub compatible: *const c_char, pub instr_count: u16, pub sm_count: u16, pub fifo_depth: u16, pub hw_state: *mut c_void, pub create_instance: Option<unsafe extern "C" fn(chip: *const pio_chip, index: uint) -> PIO>, pub open_instance: Option<unsafe extern "C" fn(pio: PIO) -> c_int>, pub close_instance: Option<unsafe extern "C" fn(pio: PIO)>, pub pio_sm_config_xfer: Option<unsafe extern "C" fn(pio: PIO, sm: uint, dir: uint, buf_size: uint, buf_count: uint) -> c_int>, pub pio_sm_xfer_data: Option<unsafe extern "C" fn(pio: PIO, sm: uint, dir: uint, data_bytes: uint, data: *mut c_void) -> c_int>, pub pio_can_add_program_at_offset: Option<unsafe extern "C" fn(pio: PIO, program: *const pio_program_t, offset: uint) -> bool>, pub pio_add_program_at_offset: Option<unsafe extern "C" fn(pio: PIO, program: *const pio_program_t, offset: uint) -> uint>, pub pio_remove_program: Option<unsafe extern "C" fn(pio: PIO, program: *const pio_program_t, loaded_offset: uint) -> bool>, pub pio_clear_instruction_memory: Option<unsafe extern "C" fn(pio: PIO) -> bool>, pub pio_encode_delay: Option<unsafe extern "C" fn(pio: PIO, cycles: uint) -> uint>, pub pio_encode_sideset: Option<unsafe extern "C" fn(pio: PIO, sideset_bit_count: uint, value: uint) -> uint>, pub pio_encode_sideset_opt: Option<unsafe extern "C" fn(pio: PIO, sideset_bit_count: uint, value: uint) -> uint>, pub pio_encode_jmp: Option<unsafe extern "C" fn(pio: PIO, addr: uint) -> uint>, pub pio_encode_jmp_not_x: Option<unsafe extern "C" fn(pio: PIO, addr: uint) -> uint>, pub pio_encode_jmp_x_dec: Option<unsafe extern "C" fn(pio: PIO, addr: uint) -> uint>, pub pio_encode_jmp_not_y: Option<unsafe extern "C" fn(pio: PIO, addr: uint) -> uint>, pub pio_encode_jmp_y_dec: Option<unsafe extern "C" fn(pio: PIO, addr: uint) -> uint>, pub pio_encode_jmp_x_ne_y: Option<unsafe extern "C" fn(pio: PIO, addr: uint) -> uint>, pub pio_encode_jmp_pin: Option<unsafe extern "C" fn(pio: PIO, addr: uint) -> uint>, pub pio_encode_jmp_not_osre: Option<unsafe extern "C" fn(pio: PIO, addr: uint) -> uint>, pub pio_encode_wait_gpio: Option<unsafe extern "C" fn(pio: PIO, polarity: bool, gpio: uint) -> uint>, pub pio_encode_wait_pin: Option<unsafe extern "C" fn(pio: PIO, polarity: bool, pin: uint) -> uint>, pub pio_encode_wait_irq: Option<unsafe extern "C" fn(pio: PIO, polarity: bool, relative: bool, irq: uint) -> uint>, pub pio_encode_in: Option<unsafe extern "C" fn(pio: PIO, src: pio_src_dest, count: uint) -> uint>, pub pio_encode_out: Option<unsafe extern "C" fn(pio: PIO, dest: pio_src_dest, count: uint) -> uint>, pub pio_encode_push: Option<unsafe extern "C" fn(pio: PIO, if_full: bool, block: bool) -> uint>, pub pio_encode_pull: Option<unsafe extern "C" fn(pio: PIO, if_empty: bool, block: bool) -> uint>, pub pio_encode_mov: Option<unsafe extern "C" fn(pio: PIO, dest: pio_src_dest, src: pio_src_dest) -> uint>, pub pio_encode_mov_not: Option<unsafe extern "C" fn(pio: PIO, dest: pio_src_dest, src: pio_src_dest) -> uint>, pub pio_encode_mov_reverse: Option<unsafe extern "C" fn(pio: PIO, dest: pio_src_dest, src: pio_src_dest) -> uint>, pub pio_encode_irq_set: Option<unsafe extern "C" fn(pio: PIO, relative: bool, irq: uint) -> uint>, pub pio_encode_irq_wait: Option<unsafe extern "C" fn(pio: PIO, relative: bool, irq: uint) -> uint>, pub pio_encode_irq_clear: Option<unsafe extern "C" fn(pio: PIO, relative: bool, irq: uint) -> uint>, pub pio_encode_set: Option<unsafe extern "C" fn(pio: PIO, dest: pio_src_dest, value: uint) -> uint>, pub pio_encode_nop: Option<unsafe extern "C" fn(pio: PIO) -> uint>, pub pio_sm_claim: Option<unsafe extern "C" fn(pio: PIO, sm: uint) -> bool>, pub pio_sm_claim_mask: Option<unsafe extern "C" fn(pio: PIO, mask: uint) -> bool>, pub pio_sm_claim_unused: Option<unsafe extern "C" fn(pio: PIO, required: bool) -> c_int>, pub pio_sm_unclaim: Option<unsafe extern "C" fn(pio: PIO, sm: uint) -> bool>, pub pio_sm_is_claimed: Option<unsafe extern "C" fn(pio: PIO, sm: uint) -> bool>, pub pio_sm_init: Option<unsafe extern "C" fn(pio: PIO, sm: uint, initial_pc: uint, config: *const pio_sm_config)>, pub pio_sm_set_config: Option<unsafe extern "C" fn(pio: PIO, sm: uint, config: *const pio_sm_config)>, pub pio_sm_exec: Option<unsafe extern "C" fn(pio: PIO, sm: uint, instr: uint, blocking: bool)>, pub pio_sm_clear_fifos: Option<unsafe extern "C" fn(pio: PIO, sm: uint)>, pub pio_sm_set_clkdiv_int_frac: Option<unsafe extern "C" fn(pio: PIO, sm: uint, div_int: u16, div_frac: u8)>, pub pio_sm_set_clkdiv: Option<unsafe extern "C" fn(pio: PIO, sm: uint, div: f32)>, pub pio_sm_set_pins: Option<unsafe extern "C" fn(pio: PIO, sm: uint, pin_values: u32)>, pub pio_sm_set_pins_with_mask: Option<unsafe extern "C" fn(pio: PIO, sm: uint, pin_values: u32, pin_mask: u32)>, pub pio_sm_set_pindirs_with_mask: Option<unsafe extern "C" fn(pio: PIO, sm: uint, pin_dirs: u32, pin_mask: u32)>, pub pio_sm_set_consecutive_pindirs: Option<unsafe extern "C" fn(pio: PIO, sm: uint, pin_base: uint, pin_count: uint, is_out: bool)>, pub pio_sm_set_enabled: Option<unsafe extern "C" fn(pio: PIO, sm: uint, enabled: bool)>, pub pio_sm_set_enabled_mask: Option<unsafe extern "C" fn(pio: PIO, mask: u32, enabled: bool)>, pub pio_sm_restart: Option<unsafe extern "C" fn(pio: PIO, sm: uint)>, pub pio_sm_restart_mask: Option<unsafe extern "C" fn(pio: PIO, mask: u32)>, pub pio_sm_clkdiv_restart: Option<unsafe extern "C" fn(pio: PIO, sm: uint)>, pub pio_sm_clkdiv_restart_mask: Option<unsafe extern "C" fn(pio: PIO, mask: u32)>, pub pio_sm_enable_sync: Option<unsafe extern "C" fn(pio: PIO, mask: u32)>, pub pio_sm_put: Option<unsafe extern "C" fn(pio: PIO, sm: uint, data: u32, blocking: bool)>, pub pio_sm_get: Option<unsafe extern "C" fn(pio: PIO, sm: uint, blocking: bool) -> u32>, pub pio_sm_set_dmactrl: Option<unsafe extern "C" fn(pio: PIO, sm: uint, is_tx: bool, ctrl: u32)>, pub pio_sm_is_rx_fifo_empty: Option<unsafe extern "C" fn(pio: PIO, sm: uint) -> bool>, pub pio_sm_is_rx_fifo_full: Option<unsafe extern "C" fn(pio: PIO, sm: uint) -> bool>, pub pio_sm_get_rx_fifo_level: Option<unsafe extern "C" fn(pio: PIO, sm: uint) -> uint>, pub pio_sm_is_tx_fifo_empty: Option<unsafe extern "C" fn(pio: PIO, sm: uint) -> bool>, pub pio_sm_is_tx_fifo_full: Option<unsafe extern "C" fn(pio: PIO, sm: uint) -> bool>, pub pio_sm_get_tx_fifo_level: Option<unsafe extern "C" fn(pio: PIO, sm: uint) -> uint>, pub pio_sm_drain_tx_fifo: Option<unsafe extern "C" fn(pio: PIO, sm: uint)>, pub pio_get_default_sm_config: Option<unsafe extern "C" fn(pio: PIO) -> pio_sm_config>, pub smc_set_out_pins: Option<unsafe extern "C" fn(pio: PIO, c: *mut pio_sm_config, out_base: uint, out_count: uint)>, pub smc_set_set_pins: Option<unsafe extern "C" fn(pio: PIO, c: *mut pio_sm_config, set_base: uint, set_count: uint)>, pub smc_set_in_pins: Option<unsafe extern "C" fn(pio: PIO, c: *mut pio_sm_config, in_base: uint)>, pub smc_set_sideset_pins: Option<unsafe extern "C" fn(pio: PIO, c: *mut pio_sm_config, sideset_base: uint)>, pub smc_set_sideset: Option<unsafe extern "C" fn(pio: PIO, c: *mut pio_sm_config, bit_count: uint, optional: bool, pindirs: bool)>, pub smc_set_clkdiv_int_frac: Option<unsafe extern "C" fn(pio: PIO, c: *mut pio_sm_config, div_int: u16, div_frac: u8)>, pub smc_set_clkdiv: Option<unsafe extern "C" fn(pio: PIO, c: *mut pio_sm_config, div: f32)>, pub smc_set_wrap: Option<unsafe extern "C" fn(pio: PIO, c: *mut pio_sm_config, wrap_target: uint, wrap: uint)>, pub smc_set_jmp_pin: Option<unsafe extern "C" fn(pio: PIO, c: *mut pio_sm_config, pin: uint)>, pub smc_set_in_shift: Option<unsafe extern "C" fn(pio: PIO, c: *mut pio_sm_config, shift_right: bool, autopush: bool, push_threshold: uint)>, pub smc_set_out_shift: Option<unsafe extern "C" fn(pio: PIO, c: *mut pio_sm_config, shift_right: bool, autopull: bool, pull_threshold: uint)>, pub smc_set_fifo_join: Option<unsafe extern "C" fn(pio: PIO, c: *mut pio_sm_config, join: pio_fifo_join)>, pub smc_set_out_special: Option<unsafe extern "C" fn(pio: PIO, c: *mut pio_sm_config, sticky: bool, has_enable_pin: bool, enable_pin_index: uint)>, pub smc_set_mov_status: Option<unsafe extern "C" fn(pio: PIO, c: *mut pio_sm_config, status_sel: pio_mov_status_type, status_n: uint)>, pub clock_get_hz: Option<unsafe extern "C" fn(pio: PIO, clk_index: clock_index) -> u32>, pub pio_gpio_init: Option<unsafe extern "C" fn(arg1: PIO, pin: uint)>, pub gpio_init: Option<unsafe extern "C" fn(pio: PIO, gpio: uint)>, pub gpio_set_function: Option<unsafe extern "C" fn(pio: PIO, gpio: uint, fn_: gpio_function)>, pub gpio_set_pulls: Option<unsafe extern "C" fn(pio: PIO, gpio: uint, up: bool, down: bool)>, pub gpio_set_outover: Option<unsafe extern "C" fn(pio: PIO, gpio: uint, value: uint)>, pub gpio_set_inover: Option<unsafe extern "C" fn(pio: PIO, gpio: uint, value: uint)>, pub gpio_set_oeover: Option<unsafe extern "C" fn(pio: PIO, gpio: uint, value: uint)>, pub gpio_set_input_enabled: Option<unsafe extern "C" fn(pio: PIO, gpio: uint, enabled: bool)>, pub gpio_set_drive_strength: Option<unsafe extern "C" fn(pio: PIO, gpio: uint, drive: gpio_drive_strength)>,
}

Fields§

§name: *const c_char§compatible: *const c_char§instr_count: u16§sm_count: u16§fifo_depth: u16§hw_state: *mut c_void§create_instance: Option<unsafe extern "C" fn(chip: *const pio_chip, index: uint) -> PIO>§open_instance: Option<unsafe extern "C" fn(pio: PIO) -> c_int>§close_instance: Option<unsafe extern "C" fn(pio: PIO)>§pio_sm_config_xfer: Option<unsafe extern "C" fn(pio: PIO, sm: uint, dir: uint, buf_size: uint, buf_count: uint) -> c_int>§pio_sm_xfer_data: Option<unsafe extern "C" fn(pio: PIO, sm: uint, dir: uint, data_bytes: uint, data: *mut c_void) -> c_int>§pio_can_add_program_at_offset: Option<unsafe extern "C" fn(pio: PIO, program: *const pio_program_t, offset: uint) -> bool>§pio_add_program_at_offset: Option<unsafe extern "C" fn(pio: PIO, program: *const pio_program_t, offset: uint) -> uint>§pio_remove_program: Option<unsafe extern "C" fn(pio: PIO, program: *const pio_program_t, loaded_offset: uint) -> bool>§pio_clear_instruction_memory: Option<unsafe extern "C" fn(pio: PIO) -> bool>§pio_encode_delay: Option<unsafe extern "C" fn(pio: PIO, cycles: uint) -> uint>§pio_encode_sideset: Option<unsafe extern "C" fn(pio: PIO, sideset_bit_count: uint, value: uint) -> uint>§pio_encode_sideset_opt: Option<unsafe extern "C" fn(pio: PIO, sideset_bit_count: uint, value: uint) -> uint>§pio_encode_jmp: Option<unsafe extern "C" fn(pio: PIO, addr: uint) -> uint>§pio_encode_jmp_not_x: Option<unsafe extern "C" fn(pio: PIO, addr: uint) -> uint>§pio_encode_jmp_x_dec: Option<unsafe extern "C" fn(pio: PIO, addr: uint) -> uint>§pio_encode_jmp_not_y: Option<unsafe extern "C" fn(pio: PIO, addr: uint) -> uint>§pio_encode_jmp_y_dec: Option<unsafe extern "C" fn(pio: PIO, addr: uint) -> uint>§pio_encode_jmp_x_ne_y: Option<unsafe extern "C" fn(pio: PIO, addr: uint) -> uint>§pio_encode_jmp_pin: Option<unsafe extern "C" fn(pio: PIO, addr: uint) -> uint>§pio_encode_jmp_not_osre: Option<unsafe extern "C" fn(pio: PIO, addr: uint) -> uint>§pio_encode_wait_gpio: Option<unsafe extern "C" fn(pio: PIO, polarity: bool, gpio: uint) -> uint>§pio_encode_wait_pin: Option<unsafe extern "C" fn(pio: PIO, polarity: bool, pin: uint) -> uint>§pio_encode_wait_irq: Option<unsafe extern "C" fn(pio: PIO, polarity: bool, relative: bool, irq: uint) -> uint>§pio_encode_in: Option<unsafe extern "C" fn(pio: PIO, src: pio_src_dest, count: uint) -> uint>§pio_encode_out: Option<unsafe extern "C" fn(pio: PIO, dest: pio_src_dest, count: uint) -> uint>§pio_encode_push: Option<unsafe extern "C" fn(pio: PIO, if_full: bool, block: bool) -> uint>§pio_encode_pull: Option<unsafe extern "C" fn(pio: PIO, if_empty: bool, block: bool) -> uint>§pio_encode_mov: Option<unsafe extern "C" fn(pio: PIO, dest: pio_src_dest, src: pio_src_dest) -> uint>§pio_encode_mov_not: Option<unsafe extern "C" fn(pio: PIO, dest: pio_src_dest, src: pio_src_dest) -> uint>§pio_encode_mov_reverse: Option<unsafe extern "C" fn(pio: PIO, dest: pio_src_dest, src: pio_src_dest) -> uint>§pio_encode_irq_set: Option<unsafe extern "C" fn(pio: PIO, relative: bool, irq: uint) -> uint>§pio_encode_irq_wait: Option<unsafe extern "C" fn(pio: PIO, relative: bool, irq: uint) -> uint>§pio_encode_irq_clear: Option<unsafe extern "C" fn(pio: PIO, relative: bool, irq: uint) -> uint>§pio_encode_set: Option<unsafe extern "C" fn(pio: PIO, dest: pio_src_dest, value: uint) -> uint>§pio_encode_nop: Option<unsafe extern "C" fn(pio: PIO) -> uint>§pio_sm_claim: Option<unsafe extern "C" fn(pio: PIO, sm: uint) -> bool>§pio_sm_claim_mask: Option<unsafe extern "C" fn(pio: PIO, mask: uint) -> bool>§pio_sm_claim_unused: Option<unsafe extern "C" fn(pio: PIO, required: bool) -> c_int>§pio_sm_unclaim: Option<unsafe extern "C" fn(pio: PIO, sm: uint) -> bool>§pio_sm_is_claimed: Option<unsafe extern "C" fn(pio: PIO, sm: uint) -> bool>§pio_sm_init: Option<unsafe extern "C" fn(pio: PIO, sm: uint, initial_pc: uint, config: *const pio_sm_config)>§pio_sm_set_config: Option<unsafe extern "C" fn(pio: PIO, sm: uint, config: *const pio_sm_config)>§pio_sm_exec: Option<unsafe extern "C" fn(pio: PIO, sm: uint, instr: uint, blocking: bool)>§pio_sm_clear_fifos: Option<unsafe extern "C" fn(pio: PIO, sm: uint)>§pio_sm_set_clkdiv_int_frac: Option<unsafe extern "C" fn(pio: PIO, sm: uint, div_int: u16, div_frac: u8)>§pio_sm_set_clkdiv: Option<unsafe extern "C" fn(pio: PIO, sm: uint, div: f32)>§pio_sm_set_pins: Option<unsafe extern "C" fn(pio: PIO, sm: uint, pin_values: u32)>§pio_sm_set_pins_with_mask: Option<unsafe extern "C" fn(pio: PIO, sm: uint, pin_values: u32, pin_mask: u32)>§pio_sm_set_pindirs_with_mask: Option<unsafe extern "C" fn(pio: PIO, sm: uint, pin_dirs: u32, pin_mask: u32)>§pio_sm_set_consecutive_pindirs: Option<unsafe extern "C" fn(pio: PIO, sm: uint, pin_base: uint, pin_count: uint, is_out: bool)>§pio_sm_set_enabled: Option<unsafe extern "C" fn(pio: PIO, sm: uint, enabled: bool)>§pio_sm_set_enabled_mask: Option<unsafe extern "C" fn(pio: PIO, mask: u32, enabled: bool)>§pio_sm_restart: Option<unsafe extern "C" fn(pio: PIO, sm: uint)>§pio_sm_restart_mask: Option<unsafe extern "C" fn(pio: PIO, mask: u32)>§pio_sm_clkdiv_restart: Option<unsafe extern "C" fn(pio: PIO, sm: uint)>§pio_sm_clkdiv_restart_mask: Option<unsafe extern "C" fn(pio: PIO, mask: u32)>§pio_sm_enable_sync: Option<unsafe extern "C" fn(pio: PIO, mask: u32)>§pio_sm_put: Option<unsafe extern "C" fn(pio: PIO, sm: uint, data: u32, blocking: bool)>§pio_sm_get: Option<unsafe extern "C" fn(pio: PIO, sm: uint, blocking: bool) -> u32>§pio_sm_set_dmactrl: Option<unsafe extern "C" fn(pio: PIO, sm: uint, is_tx: bool, ctrl: u32)>§pio_sm_is_rx_fifo_empty: Option<unsafe extern "C" fn(pio: PIO, sm: uint) -> bool>§pio_sm_is_rx_fifo_full: Option<unsafe extern "C" fn(pio: PIO, sm: uint) -> bool>§pio_sm_get_rx_fifo_level: Option<unsafe extern "C" fn(pio: PIO, sm: uint) -> uint>§pio_sm_is_tx_fifo_empty: Option<unsafe extern "C" fn(pio: PIO, sm: uint) -> bool>§pio_sm_is_tx_fifo_full: Option<unsafe extern "C" fn(pio: PIO, sm: uint) -> bool>§pio_sm_get_tx_fifo_level: Option<unsafe extern "C" fn(pio: PIO, sm: uint) -> uint>§pio_sm_drain_tx_fifo: Option<unsafe extern "C" fn(pio: PIO, sm: uint)>§pio_get_default_sm_config: Option<unsafe extern "C" fn(pio: PIO) -> pio_sm_config>§smc_set_out_pins: Option<unsafe extern "C" fn(pio: PIO, c: *mut pio_sm_config, out_base: uint, out_count: uint)>§smc_set_set_pins: Option<unsafe extern "C" fn(pio: PIO, c: *mut pio_sm_config, set_base: uint, set_count: uint)>§smc_set_in_pins: Option<unsafe extern "C" fn(pio: PIO, c: *mut pio_sm_config, in_base: uint)>§smc_set_sideset_pins: Option<unsafe extern "C" fn(pio: PIO, c: *mut pio_sm_config, sideset_base: uint)>§smc_set_sideset: Option<unsafe extern "C" fn(pio: PIO, c: *mut pio_sm_config, bit_count: uint, optional: bool, pindirs: bool)>§smc_set_clkdiv_int_frac: Option<unsafe extern "C" fn(pio: PIO, c: *mut pio_sm_config, div_int: u16, div_frac: u8)>§smc_set_clkdiv: Option<unsafe extern "C" fn(pio: PIO, c: *mut pio_sm_config, div: f32)>§smc_set_wrap: Option<unsafe extern "C" fn(pio: PIO, c: *mut pio_sm_config, wrap_target: uint, wrap: uint)>§smc_set_jmp_pin: Option<unsafe extern "C" fn(pio: PIO, c: *mut pio_sm_config, pin: uint)>§smc_set_in_shift: Option<unsafe extern "C" fn(pio: PIO, c: *mut pio_sm_config, shift_right: bool, autopush: bool, push_threshold: uint)>§smc_set_out_shift: Option<unsafe extern "C" fn(pio: PIO, c: *mut pio_sm_config, shift_right: bool, autopull: bool, pull_threshold: uint)>§smc_set_fifo_join: Option<unsafe extern "C" fn(pio: PIO, c: *mut pio_sm_config, join: pio_fifo_join)>§smc_set_out_special: Option<unsafe extern "C" fn(pio: PIO, c: *mut pio_sm_config, sticky: bool, has_enable_pin: bool, enable_pin_index: uint)>§smc_set_mov_status: Option<unsafe extern "C" fn(pio: PIO, c: *mut pio_sm_config, status_sel: pio_mov_status_type, status_n: uint)>§clock_get_hz: Option<unsafe extern "C" fn(pio: PIO, clk_index: clock_index) -> u32>§pio_gpio_init: Option<unsafe extern "C" fn(arg1: PIO, pin: uint)>§gpio_init: Option<unsafe extern "C" fn(pio: PIO, gpio: uint)>§gpio_set_function: Option<unsafe extern "C" fn(pio: PIO, gpio: uint, fn_: gpio_function)>§gpio_set_pulls: Option<unsafe extern "C" fn(pio: PIO, gpio: uint, up: bool, down: bool)>§gpio_set_outover: Option<unsafe extern "C" fn(pio: PIO, gpio: uint, value: uint)>§gpio_set_inover: Option<unsafe extern "C" fn(pio: PIO, gpio: uint, value: uint)>§gpio_set_oeover: Option<unsafe extern "C" fn(pio: PIO, gpio: uint, value: uint)>§gpio_set_input_enabled: Option<unsafe extern "C" fn(pio: PIO, gpio: uint, enabled: bool)>§gpio_set_drive_strength: Option<unsafe extern "C" fn(pio: PIO, gpio: uint, drive: gpio_drive_strength)>

Trait Implementations§

Source§

impl Clone for pio_chip

Source§

fn clone(&self) -> pio_chip

Returns a duplicate of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for pio_chip

Source§

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

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

impl Copy for pio_chip

Auto Trait Implementations§

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.