Skip to main content

Arg

Trait Arg 

Source
pub trait Arg<T> {
    // Required method
    fn arg(self) -> T;
}
Expand description

An argument given as Self for a field of type T.

Required Methods§

Source

fn arg(self) -> T

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl Arg<BlockPos> for (i32, i32, i32)

Source§

fn arg(self) -> BlockPos

Source§

impl Arg<BlockPos> for [i32; 3]

Source§

fn arg(self) -> BlockPos

Source§

impl Arg<Option<String>> for Option<&String>

Source§

impl Arg<Option<String>> for Option<&str>

Source§

impl Arg<Point> for (f64, f64, f64)

Source§

fn arg(self) -> Point

Source§

impl Arg<Point> for [f64; 3]

Source§

fn arg(self) -> Point

Source§

impl Arg<String> for &Atom

Source§

fn arg(self) -> String

Source§

impl Arg<String> for &String

Source§

fn arg(self) -> String

Source§

impl Arg<String> for &str

Source§

fn arg(self) -> String

Source§

impl Arg<String> for Atom

Source§

fn arg(self) -> String

Source§

impl Arg<String> for Cow<'_, str>

Source§

fn arg(self) -> String

Source§

impl Arg<Vec<String>> for &[&str]

Source§

fn arg(self) -> Vec<String>

Source§

impl Arg<Vec<String>> for &[String]

Source§

fn arg(self) -> Vec<String>

Source§

impl Arg<Vec<String>> for Vec<&str>

Source§

fn arg(self) -> Vec<String>

Source§

impl Arg<Vec<u8>> for &Vec<u8>

Source§

fn arg(self) -> Vec<u8> ⓘ

Source§

impl Arg<Vec<u8>> for &[u8]

Source§

fn arg(self) -> Vec<u8> ⓘ

Source§

impl<const N: usize> Arg<Vec<u8>> for &[u8; N]

Bytes as an array (&[on as u8]).

Source§

fn arg(self) -> Vec<u8> ⓘ

Implementors§

Source§

impl Arg<Point> for BlockPos

Source§

impl<T> Arg<T> for T