Skip to main content

LinuxSignalSet

Struct LinuxSignalSet 

Source
pub struct LinuxSignalSet { /* private fields */ }
Available on crate feature linux only.
Expand description

๐Ÿง ๐Ÿ“ถ โІ A compact semantic set of standard Linux signals.


๐Ÿ“ sys/os/linux/process

๐Ÿ“ฆ size_of::<LinuxSignalSet>() == 4 bytes / 32 bits


This is not the raw Linux sigset_t mask. Signal bits are stored compactly from zero: SIGHUP is bit 0, SIGINT is bit 1, โ€ฆ

Implementationsยง

Sourceยง

impl LinuxSignalSet

Source

pub const fn from_signal(signal: LinuxSignal) -> Self

Returns a singleton set containing signal.

Source

pub const fn to_signal(self) -> Option<LinuxSignal> โ“˜

Returns the only signal in this set, if it contains exactly one.

Source

pub fn for_each(self, f: impl FnMut(LinuxSignal))

Calls f for each signal in this set.

Source

pub fn for_each_catchable(self, f: impl FnMut(LinuxSignal))

Calls f for each catchable signal in this set.

Source

pub const fn all_catchable(self) -> bool

Returns whether all signals in this set are catchable.

Source

pub const fn catchable_only(self) -> Self

Returns this set without without signals that cannot be caught.

Sourceยง

impl LinuxSignalSet

Named constants

Source

pub const SIGHUP: Self

1 The bit index that corresponds to LinuxSignal::SIGHUP.

Source

pub const SIGINT: Self

1 The bit index that corresponds to LinuxSignal::SIGINT.

Source

pub const SIGQUIT: Self

1 The bit index that corresponds to LinuxSignal::SIGQUIT.

Source

pub const SIGILL: Self

1 The bit index that corresponds to LinuxSignal::SIGILL.

Source

pub const SIGTRAP: Self

1 The bit index that corresponds to LinuxSignal::SIGTRAP.

Source

pub const SIGABRT: Self

1 The bit index that corresponds to LinuxSignal::SIGABRT.

Source

pub const SIGBUS: Self

1 The bit index that corresponds to LinuxSignal::SIGBUS.

Source

pub const SIGFPE: Self

1 The bit index that corresponds to LinuxSignal::SIGFPE.

Source

pub const SIGKILL: Self

1 The bit index that corresponds to LinuxSignal::SIGKILL.

Source

pub const SIGUSR1: Self

1 The bit index that corresponds to LinuxSignal::SIGUSR1.

Source

pub const SIGSEGV: Self

1 The bit index that corresponds to LinuxSignal::SIGSEGV.

Source

pub const SIGUSR2: Self

1 The bit index that corresponds to LinuxSignal::SIGUSR2.

Source

pub const SIGPIPE: Self

1 The bit index that corresponds to LinuxSignal::SIGPIPE.

Source

pub const SIGALRM: Self

1 The bit index that corresponds to LinuxSignal::SIGALRM.

Source

pub const SIGTERM: Self

1 The bit index that corresponds to LinuxSignal::SIGTERM.

Source

pub const SIGSTKFLT: Self

1 The bit index that corresponds to LinuxSignal::SIGSTKFLT.

Source

pub const SIGCHLD: Self

1 The bit index that corresponds to LinuxSignal::SIGCHLD.

Source

pub const SIGCONT: Self

1 The bit index that corresponds to LinuxSignal::SIGCONT.

Source

pub const SIGSTOP: Self

1 The bit index that corresponds to LinuxSignal::SIGSTOP.

Source

pub const SIGTSTP: Self

1 The bit index that corresponds to LinuxSignal::SIGTSTP.

Source

pub const SIGTTIN: Self

1 The bit index that corresponds to LinuxSignal::SIGTTIN.

Source

pub const SIGTTOU: Self

1 The bit index that corresponds to LinuxSignal::SIGTTOU.

Source

pub const SIGURG: Self

1 The bit index that corresponds to LinuxSignal::SIGURG.

Source

pub const SIGXCPU: Self

1 The bit index that corresponds to LinuxSignal::SIGXCPU.

Source

pub const SIGXFSZ: Self

1 The bit index that corresponds to LinuxSignal::SIGXFSZ.

Source

pub const SIGVTALRM: Self

1 The bit index that corresponds to LinuxSignal::SIGVTALRM.

Source

pub const SIGPROF: Self

1 The bit index that corresponds to LinuxSignal::SIGPROF.

Source

pub const SIGWINCH: Self

1 The bit index that corresponds to LinuxSignal::SIGWINCH.

Source

pub const SIGIO: Self

1 The bit index that corresponds to LinuxSignal::SIGIO.

Source

pub const SIGPWR: Self

1 The bit index that corresponds to LinuxSignal::SIGPWR.

Source

pub const SIGSYS: Self

1 The bit index that corresponds to LinuxSignal::SIGSYS.

Sourceยง

impl LinuxSignalSet

Convenience methods derived from each named constant.

Source

pub const fn has_sighup(self) -> bool

Returns true if SIGHUP is present.

Source

pub const fn contains_sighup(self) -> bool

Returns true if all bits in SIGHUP are present.

Source

pub const fn intersects_sighup(self) -> bool

Returns true if the set shares any bit with SIGHUP.

Source

pub const fn with_sighup(self) -> Self

Returns self with SIGHUP inserted.

Source

pub const fn with_sighup_if(self, condition: bool) -> Self

Returns self with SIGHUP inserted if condition is true.

Source

pub const fn without_sighup(self) -> Self

Returns self with SIGHUP removed.

Source

pub const fn set_sighup(&mut self)

Sets SIGHUP.

Source

pub const fn set_sighup_if(&mut self, condition: bool)

Sets SIGHUP if condition is true.

Source

pub const fn unset_sighup(&mut self)

Unsets SIGHUP.

Source

pub const fn has_sigint(self) -> bool

Returns true if SIGINT is present.

Source

pub const fn contains_sigint(self) -> bool

Returns true if all bits in SIGINT are present.

Source

pub const fn intersects_sigint(self) -> bool

Returns true if the set shares any bit with SIGINT.

Source

pub const fn with_sigint(self) -> Self

Returns self with SIGINT inserted.

Source

pub const fn with_sigint_if(self, condition: bool) -> Self

Returns self with SIGINT inserted if condition is true.

Source

pub const fn without_sigint(self) -> Self

Returns self with SIGINT removed.

Source

pub const fn set_sigint(&mut self)

Sets SIGINT.

Source

pub const fn set_sigint_if(&mut self, condition: bool)

Sets SIGINT if condition is true.

Source

pub const fn unset_sigint(&mut self)

Unsets SIGINT.

Source

pub const fn has_sigquit(self) -> bool

Returns true if SIGQUIT is present.

Source

pub const fn contains_sigquit(self) -> bool

Returns true if all bits in SIGQUIT are present.

Source

pub const fn intersects_sigquit(self) -> bool

Returns true if the set shares any bit with SIGQUIT.

Source

pub const fn with_sigquit(self) -> Self

Returns self with SIGQUIT inserted.

Source

pub const fn with_sigquit_if(self, condition: bool) -> Self

Returns self with SIGQUIT inserted if condition is true.

Source

pub const fn without_sigquit(self) -> Self

Returns self with SIGQUIT removed.

Source

pub const fn set_sigquit(&mut self)

Sets SIGQUIT.

Source

pub const fn set_sigquit_if(&mut self, condition: bool)

Sets SIGQUIT if condition is true.

Source

pub const fn unset_sigquit(&mut self)

Unsets SIGQUIT.

Source

pub const fn has_sigill(self) -> bool

Returns true if SIGILL is present.

Source

pub const fn contains_sigill(self) -> bool

Returns true if all bits in SIGILL are present.

Source

pub const fn intersects_sigill(self) -> bool

Returns true if the set shares any bit with SIGILL.

Source

pub const fn with_sigill(self) -> Self

Returns self with SIGILL inserted.

Source

pub const fn with_sigill_if(self, condition: bool) -> Self

Returns self with SIGILL inserted if condition is true.

Source

pub const fn without_sigill(self) -> Self

Returns self with SIGILL removed.

Source

pub const fn set_sigill(&mut self)

Sets SIGILL.

Source

pub const fn set_sigill_if(&mut self, condition: bool)

Sets SIGILL if condition is true.

Source

pub const fn unset_sigill(&mut self)

Unsets SIGILL.

Source

pub const fn has_sigtrap(self) -> bool

Returns true if SIGTRAP is present.

Source

pub const fn contains_sigtrap(self) -> bool

Returns true if all bits in SIGTRAP are present.

Source

pub const fn intersects_sigtrap(self) -> bool

Returns true if the set shares any bit with SIGTRAP.

Source

pub const fn with_sigtrap(self) -> Self

Returns self with SIGTRAP inserted.

Source

pub const fn with_sigtrap_if(self, condition: bool) -> Self

Returns self with SIGTRAP inserted if condition is true.

Source

pub const fn without_sigtrap(self) -> Self

Returns self with SIGTRAP removed.

Source

pub const fn set_sigtrap(&mut self)

Sets SIGTRAP.

Source

pub const fn set_sigtrap_if(&mut self, condition: bool)

Sets SIGTRAP if condition is true.

Source

pub const fn unset_sigtrap(&mut self)

Unsets SIGTRAP.

Source

pub const fn has_sigabrt(self) -> bool

Returns true if SIGABRT is present.

Source

pub const fn contains_sigabrt(self) -> bool

Returns true if all bits in SIGABRT are present.

Source

pub const fn intersects_sigabrt(self) -> bool

Returns true if the set shares any bit with SIGABRT.

Source

pub const fn with_sigabrt(self) -> Self

Returns self with SIGABRT inserted.

Source

pub const fn with_sigabrt_if(self, condition: bool) -> Self

Returns self with SIGABRT inserted if condition is true.

Source

pub const fn without_sigabrt(self) -> Self

Returns self with SIGABRT removed.

Source

pub const fn set_sigabrt(&mut self)

Sets SIGABRT.

Source

pub const fn set_sigabrt_if(&mut self, condition: bool)

Sets SIGABRT if condition is true.

Source

pub const fn unset_sigabrt(&mut self)

Unsets SIGABRT.

Source

pub const fn has_sigbus(self) -> bool

Returns true if SIGBUS is present.

Source

pub const fn contains_sigbus(self) -> bool

Returns true if all bits in SIGBUS are present.

Source

pub const fn intersects_sigbus(self) -> bool

Returns true if the set shares any bit with SIGBUS.

Source

pub const fn with_sigbus(self) -> Self

Returns self with SIGBUS inserted.

Source

pub const fn with_sigbus_if(self, condition: bool) -> Self

Returns self with SIGBUS inserted if condition is true.

Source

pub const fn without_sigbus(self) -> Self

Returns self with SIGBUS removed.

Source

pub const fn set_sigbus(&mut self)

Sets SIGBUS.

Source

pub const fn set_sigbus_if(&mut self, condition: bool)

Sets SIGBUS if condition is true.

Source

pub const fn unset_sigbus(&mut self)

Unsets SIGBUS.

Source

pub const fn has_sigfpe(self) -> bool

Returns true if SIGFPE is present.

Source

pub const fn contains_sigfpe(self) -> bool

Returns true if all bits in SIGFPE are present.

Source

pub const fn intersects_sigfpe(self) -> bool

Returns true if the set shares any bit with SIGFPE.

Source

pub const fn with_sigfpe(self) -> Self

Returns self with SIGFPE inserted.

Source

pub const fn with_sigfpe_if(self, condition: bool) -> Self

Returns self with SIGFPE inserted if condition is true.

Source

pub const fn without_sigfpe(self) -> Self

Returns self with SIGFPE removed.

Source

pub const fn set_sigfpe(&mut self)

Sets SIGFPE.

Source

pub const fn set_sigfpe_if(&mut self, condition: bool)

Sets SIGFPE if condition is true.

Source

pub const fn unset_sigfpe(&mut self)

Unsets SIGFPE.

Source

pub const fn has_sigkill(self) -> bool

Returns true if SIGKILL is present.

Source

pub const fn contains_sigkill(self) -> bool

Returns true if all bits in SIGKILL are present.

Source

pub const fn intersects_sigkill(self) -> bool

Returns true if the set shares any bit with SIGKILL.

Source

pub const fn with_sigkill(self) -> Self

Returns self with SIGKILL inserted.

Source

pub const fn with_sigkill_if(self, condition: bool) -> Self

Returns self with SIGKILL inserted if condition is true.

Source

pub const fn without_sigkill(self) -> Self

Returns self with SIGKILL removed.

Source

pub const fn set_sigkill(&mut self)

Sets SIGKILL.

Source

pub const fn set_sigkill_if(&mut self, condition: bool)

Sets SIGKILL if condition is true.

Source

pub const fn unset_sigkill(&mut self)

Unsets SIGKILL.

Source

pub const fn has_sigusr1(self) -> bool

Returns true if SIGUSR1 is present.

Source

pub const fn contains_sigusr1(self) -> bool

Returns true if all bits in SIGUSR1 are present.

Source

pub const fn intersects_sigusr1(self) -> bool

Returns true if the set shares any bit with SIGUSR1.

Source

pub const fn with_sigusr1(self) -> Self

Returns self with SIGUSR1 inserted.

Source

pub const fn with_sigusr1_if(self, condition: bool) -> Self

Returns self with SIGUSR1 inserted if condition is true.

Source

pub const fn without_sigusr1(self) -> Self

Returns self with SIGUSR1 removed.

Source

pub const fn set_sigusr1(&mut self)

Sets SIGUSR1.

Source

pub const fn set_sigusr1_if(&mut self, condition: bool)

Sets SIGUSR1 if condition is true.

Source

pub const fn unset_sigusr1(&mut self)

Unsets SIGUSR1.

Source

pub const fn has_sigsegv(self) -> bool

Returns true if SIGSEGV is present.

Source

pub const fn contains_sigsegv(self) -> bool

Returns true if all bits in SIGSEGV are present.

Source

pub const fn intersects_sigsegv(self) -> bool

Returns true if the set shares any bit with SIGSEGV.

Source

pub const fn with_sigsegv(self) -> Self

Returns self with SIGSEGV inserted.

Source

pub const fn with_sigsegv_if(self, condition: bool) -> Self

Returns self with SIGSEGV inserted if condition is true.

Source

pub const fn without_sigsegv(self) -> Self

Returns self with SIGSEGV removed.

Source

pub const fn set_sigsegv(&mut self)

Sets SIGSEGV.

Source

pub const fn set_sigsegv_if(&mut self, condition: bool)

Sets SIGSEGV if condition is true.

Source

pub const fn unset_sigsegv(&mut self)

Unsets SIGSEGV.

Source

pub const fn has_sigusr2(self) -> bool

Returns true if SIGUSR2 is present.

Source

pub const fn contains_sigusr2(self) -> bool

Returns true if all bits in SIGUSR2 are present.

Source

pub const fn intersects_sigusr2(self) -> bool

Returns true if the set shares any bit with SIGUSR2.

Source

pub const fn with_sigusr2(self) -> Self

Returns self with SIGUSR2 inserted.

Source

pub const fn with_sigusr2_if(self, condition: bool) -> Self

Returns self with SIGUSR2 inserted if condition is true.

Source

pub const fn without_sigusr2(self) -> Self

Returns self with SIGUSR2 removed.

Source

pub const fn set_sigusr2(&mut self)

Sets SIGUSR2.

Source

pub const fn set_sigusr2_if(&mut self, condition: bool)

Sets SIGUSR2 if condition is true.

Source

pub const fn unset_sigusr2(&mut self)

Unsets SIGUSR2.

Source

pub const fn has_sigpipe(self) -> bool

Returns true if SIGPIPE is present.

Source

pub const fn contains_sigpipe(self) -> bool

Returns true if all bits in SIGPIPE are present.

Source

pub const fn intersects_sigpipe(self) -> bool

Returns true if the set shares any bit with SIGPIPE.

Source

pub const fn with_sigpipe(self) -> Self

Returns self with SIGPIPE inserted.

Source

pub const fn with_sigpipe_if(self, condition: bool) -> Self

Returns self with SIGPIPE inserted if condition is true.

Source

pub const fn without_sigpipe(self) -> Self

Returns self with SIGPIPE removed.

Source

pub const fn set_sigpipe(&mut self)

Sets SIGPIPE.

Source

pub const fn set_sigpipe_if(&mut self, condition: bool)

Sets SIGPIPE if condition is true.

Source

pub const fn unset_sigpipe(&mut self)

Unsets SIGPIPE.

Source

pub const fn has_sigalrm(self) -> bool

Returns true if SIGALRM is present.

Source

pub const fn contains_sigalrm(self) -> bool

Returns true if all bits in SIGALRM are present.

Source

pub const fn intersects_sigalrm(self) -> bool

Returns true if the set shares any bit with SIGALRM.

Source

pub const fn with_sigalrm(self) -> Self

Returns self with SIGALRM inserted.

Source

pub const fn with_sigalrm_if(self, condition: bool) -> Self

Returns self with SIGALRM inserted if condition is true.

Source

pub const fn without_sigalrm(self) -> Self

Returns self with SIGALRM removed.

Source

pub const fn set_sigalrm(&mut self)

Sets SIGALRM.

Source

pub const fn set_sigalrm_if(&mut self, condition: bool)

Sets SIGALRM if condition is true.

Source

pub const fn unset_sigalrm(&mut self)

Unsets SIGALRM.

Source

pub const fn has_sigterm(self) -> bool

Returns true if SIGTERM is present.

Source

pub const fn contains_sigterm(self) -> bool

Returns true if all bits in SIGTERM are present.

Source

pub const fn intersects_sigterm(self) -> bool

Returns true if the set shares any bit with SIGTERM.

Source

pub const fn with_sigterm(self) -> Self

Returns self with SIGTERM inserted.

Source

pub const fn with_sigterm_if(self, condition: bool) -> Self

Returns self with SIGTERM inserted if condition is true.

Source

pub const fn without_sigterm(self) -> Self

Returns self with SIGTERM removed.

Source

pub const fn set_sigterm(&mut self)

Sets SIGTERM.

Source

pub const fn set_sigterm_if(&mut self, condition: bool)

Sets SIGTERM if condition is true.

Source

pub const fn unset_sigterm(&mut self)

Unsets SIGTERM.

Source

pub const fn has_sigstkflt(self) -> bool

Returns true if SIGSTKFLT is present.

Source

pub const fn contains_sigstkflt(self) -> bool

Returns true if all bits in SIGSTKFLT are present.

Source

pub const fn intersects_sigstkflt(self) -> bool

Returns true if the set shares any bit with SIGSTKFLT.

Source

pub const fn with_sigstkflt(self) -> Self

Returns self with SIGSTKFLT inserted.

Source

pub const fn with_sigstkflt_if(self, condition: bool) -> Self

Returns self with SIGSTKFLT inserted if condition is true.

Source

pub const fn without_sigstkflt(self) -> Self

Returns self with SIGSTKFLT removed.

Source

pub const fn set_sigstkflt(&mut self)

Sets SIGSTKFLT.

Source

pub const fn set_sigstkflt_if(&mut self, condition: bool)

Sets SIGSTKFLT if condition is true.

Source

pub const fn unset_sigstkflt(&mut self)

Unsets SIGSTKFLT.

Source

pub const fn has_sigchld(self) -> bool

Returns true if SIGCHLD is present.

Source

pub const fn contains_sigchld(self) -> bool

Returns true if all bits in SIGCHLD are present.

Source

pub const fn intersects_sigchld(self) -> bool

Returns true if the set shares any bit with SIGCHLD.

Source

pub const fn with_sigchld(self) -> Self

Returns self with SIGCHLD inserted.

Source

pub const fn with_sigchld_if(self, condition: bool) -> Self

Returns self with SIGCHLD inserted if condition is true.

Source

pub const fn without_sigchld(self) -> Self

Returns self with SIGCHLD removed.

Source

pub const fn set_sigchld(&mut self)

Sets SIGCHLD.

Source

pub const fn set_sigchld_if(&mut self, condition: bool)

Sets SIGCHLD if condition is true.

Source

pub const fn unset_sigchld(&mut self)

Unsets SIGCHLD.

Source

pub const fn has_sigcont(self) -> bool

Returns true if SIGCONT is present.

Source

pub const fn contains_sigcont(self) -> bool

Returns true if all bits in SIGCONT are present.

Source

pub const fn intersects_sigcont(self) -> bool

Returns true if the set shares any bit with SIGCONT.

Source

pub const fn with_sigcont(self) -> Self

Returns self with SIGCONT inserted.

Source

pub const fn with_sigcont_if(self, condition: bool) -> Self

Returns self with SIGCONT inserted if condition is true.

Source

pub const fn without_sigcont(self) -> Self

Returns self with SIGCONT removed.

Source

pub const fn set_sigcont(&mut self)

Sets SIGCONT.

Source

pub const fn set_sigcont_if(&mut self, condition: bool)

Sets SIGCONT if condition is true.

Source

pub const fn unset_sigcont(&mut self)

Unsets SIGCONT.

Source

pub const fn has_sigstop(self) -> bool

Returns true if SIGSTOP is present.

Source

pub const fn contains_sigstop(self) -> bool

Returns true if all bits in SIGSTOP are present.

Source

pub const fn intersects_sigstop(self) -> bool

Returns true if the set shares any bit with SIGSTOP.

Source

pub const fn with_sigstop(self) -> Self

Returns self with SIGSTOP inserted.

Source

pub const fn with_sigstop_if(self, condition: bool) -> Self

Returns self with SIGSTOP inserted if condition is true.

Source

pub const fn without_sigstop(self) -> Self

Returns self with SIGSTOP removed.

Source

pub const fn set_sigstop(&mut self)

Sets SIGSTOP.

Source

pub const fn set_sigstop_if(&mut self, condition: bool)

Sets SIGSTOP if condition is true.

Source

pub const fn unset_sigstop(&mut self)

Unsets SIGSTOP.

Source

pub const fn has_sigtstp(self) -> bool

Returns true if SIGTSTP is present.

Source

pub const fn contains_sigtstp(self) -> bool

Returns true if all bits in SIGTSTP are present.

Source

pub const fn intersects_sigtstp(self) -> bool

Returns true if the set shares any bit with SIGTSTP.

Source

pub const fn with_sigtstp(self) -> Self

Returns self with SIGTSTP inserted.

Source

pub const fn with_sigtstp_if(self, condition: bool) -> Self

Returns self with SIGTSTP inserted if condition is true.

Source

pub const fn without_sigtstp(self) -> Self

Returns self with SIGTSTP removed.

Source

pub const fn set_sigtstp(&mut self)

Sets SIGTSTP.

Source

pub const fn set_sigtstp_if(&mut self, condition: bool)

Sets SIGTSTP if condition is true.

Source

pub const fn unset_sigtstp(&mut self)

Unsets SIGTSTP.

Source

pub const fn has_sigttin(self) -> bool

Returns true if SIGTTIN is present.

Source

pub const fn contains_sigttin(self) -> bool

Returns true if all bits in SIGTTIN are present.

Source

pub const fn intersects_sigttin(self) -> bool

Returns true if the set shares any bit with SIGTTIN.

Source

pub const fn with_sigttin(self) -> Self

Returns self with SIGTTIN inserted.

Source

pub const fn with_sigttin_if(self, condition: bool) -> Self

Returns self with SIGTTIN inserted if condition is true.

Source

pub const fn without_sigttin(self) -> Self

Returns self with SIGTTIN removed.

Source

pub const fn set_sigttin(&mut self)

Sets SIGTTIN.

Source

pub const fn set_sigttin_if(&mut self, condition: bool)

Sets SIGTTIN if condition is true.

Source

pub const fn unset_sigttin(&mut self)

Unsets SIGTTIN.

Source

pub const fn has_sigttou(self) -> bool

Returns true if SIGTTOU is present.

Source

pub const fn contains_sigttou(self) -> bool

Returns true if all bits in SIGTTOU are present.

Source

pub const fn intersects_sigttou(self) -> bool

Returns true if the set shares any bit with SIGTTOU.

Source

pub const fn with_sigttou(self) -> Self

Returns self with SIGTTOU inserted.

Source

pub const fn with_sigttou_if(self, condition: bool) -> Self

Returns self with SIGTTOU inserted if condition is true.

Source

pub const fn without_sigttou(self) -> Self

Returns self with SIGTTOU removed.

Source

pub const fn set_sigttou(&mut self)

Sets SIGTTOU.

Source

pub const fn set_sigttou_if(&mut self, condition: bool)

Sets SIGTTOU if condition is true.

Source

pub const fn unset_sigttou(&mut self)

Unsets SIGTTOU.

Source

pub const fn has_sigurg(self) -> bool

Returns true if SIGURG is present.

Source

pub const fn contains_sigurg(self) -> bool

Returns true if all bits in SIGURG are present.

Source

pub const fn intersects_sigurg(self) -> bool

Returns true if the set shares any bit with SIGURG.

Source

pub const fn with_sigurg(self) -> Self

Returns self with SIGURG inserted.

Source

pub const fn with_sigurg_if(self, condition: bool) -> Self

Returns self with SIGURG inserted if condition is true.

Source

pub const fn without_sigurg(self) -> Self

Returns self with SIGURG removed.

Source

pub const fn set_sigurg(&mut self)

Sets SIGURG.

Source

pub const fn set_sigurg_if(&mut self, condition: bool)

Sets SIGURG if condition is true.

Source

pub const fn unset_sigurg(&mut self)

Unsets SIGURG.

Source

pub const fn has_sigxcpu(self) -> bool

Returns true if SIGXCPU is present.

Source

pub const fn contains_sigxcpu(self) -> bool

Returns true if all bits in SIGXCPU are present.

Source

pub const fn intersects_sigxcpu(self) -> bool

Returns true if the set shares any bit with SIGXCPU.

Source

pub const fn with_sigxcpu(self) -> Self

Returns self with SIGXCPU inserted.

Source

pub const fn with_sigxcpu_if(self, condition: bool) -> Self

Returns self with SIGXCPU inserted if condition is true.

Source

pub const fn without_sigxcpu(self) -> Self

Returns self with SIGXCPU removed.

Source

pub const fn set_sigxcpu(&mut self)

Sets SIGXCPU.

Source

pub const fn set_sigxcpu_if(&mut self, condition: bool)

Sets SIGXCPU if condition is true.

Source

pub const fn unset_sigxcpu(&mut self)

Unsets SIGXCPU.

Source

pub const fn has_sigxfsz(self) -> bool

Returns true if SIGXFSZ is present.

Source

pub const fn contains_sigxfsz(self) -> bool

Returns true if all bits in SIGXFSZ are present.

Source

pub const fn intersects_sigxfsz(self) -> bool

Returns true if the set shares any bit with SIGXFSZ.

Source

pub const fn with_sigxfsz(self) -> Self

Returns self with SIGXFSZ inserted.

Source

pub const fn with_sigxfsz_if(self, condition: bool) -> Self

Returns self with SIGXFSZ inserted if condition is true.

Source

pub const fn without_sigxfsz(self) -> Self

Returns self with SIGXFSZ removed.

Source

pub const fn set_sigxfsz(&mut self)

Sets SIGXFSZ.

Source

pub const fn set_sigxfsz_if(&mut self, condition: bool)

Sets SIGXFSZ if condition is true.

Source

pub const fn unset_sigxfsz(&mut self)

Unsets SIGXFSZ.

Source

pub const fn has_sigvtalrm(self) -> bool

Returns true if SIGVTALRM is present.

Source

pub const fn contains_sigvtalrm(self) -> bool

Returns true if all bits in SIGVTALRM are present.

Source

pub const fn intersects_sigvtalrm(self) -> bool

Returns true if the set shares any bit with SIGVTALRM.

Source

pub const fn with_sigvtalrm(self) -> Self

Returns self with SIGVTALRM inserted.

Source

pub const fn with_sigvtalrm_if(self, condition: bool) -> Self

Returns self with SIGVTALRM inserted if condition is true.

Source

pub const fn without_sigvtalrm(self) -> Self

Returns self with SIGVTALRM removed.

Source

pub const fn set_sigvtalrm(&mut self)

Sets SIGVTALRM.

Source

pub const fn set_sigvtalrm_if(&mut self, condition: bool)

Sets SIGVTALRM if condition is true.

Source

pub const fn unset_sigvtalrm(&mut self)

Unsets SIGVTALRM.

Source

pub const fn has_sigprof(self) -> bool

Returns true if SIGPROF is present.

Source

pub const fn contains_sigprof(self) -> bool

Returns true if all bits in SIGPROF are present.

Source

pub const fn intersects_sigprof(self) -> bool

Returns true if the set shares any bit with SIGPROF.

Source

pub const fn with_sigprof(self) -> Self

Returns self with SIGPROF inserted.

Source

pub const fn with_sigprof_if(self, condition: bool) -> Self

Returns self with SIGPROF inserted if condition is true.

Source

pub const fn without_sigprof(self) -> Self

Returns self with SIGPROF removed.

Source

pub const fn set_sigprof(&mut self)

Sets SIGPROF.

Source

pub const fn set_sigprof_if(&mut self, condition: bool)

Sets SIGPROF if condition is true.

Source

pub const fn unset_sigprof(&mut self)

Unsets SIGPROF.

Source

pub const fn has_sigwinch(self) -> bool

Returns true if SIGWINCH is present.

Source

pub const fn contains_sigwinch(self) -> bool

Returns true if all bits in SIGWINCH are present.

Source

pub const fn intersects_sigwinch(self) -> bool

Returns true if the set shares any bit with SIGWINCH.

Source

pub const fn with_sigwinch(self) -> Self

Returns self with SIGWINCH inserted.

Source

pub const fn with_sigwinch_if(self, condition: bool) -> Self

Returns self with SIGWINCH inserted if condition is true.

Source

pub const fn without_sigwinch(self) -> Self

Returns self with SIGWINCH removed.

Source

pub const fn set_sigwinch(&mut self)

Sets SIGWINCH.

Source

pub const fn set_sigwinch_if(&mut self, condition: bool)

Sets SIGWINCH if condition is true.

Source

pub const fn unset_sigwinch(&mut self)

Unsets SIGWINCH.

Source

pub const fn has_sigio(self) -> bool

Returns true if SIGIO is present.

Source

pub const fn contains_sigio(self) -> bool

Returns true if all bits in SIGIO are present.

Source

pub const fn intersects_sigio(self) -> bool

Returns true if the set shares any bit with SIGIO.

Source

pub const fn with_sigio(self) -> Self

Returns self with SIGIO inserted.

Source

pub const fn with_sigio_if(self, condition: bool) -> Self

Returns self with SIGIO inserted if condition is true.

Source

pub const fn without_sigio(self) -> Self

Returns self with SIGIO removed.

Source

pub const fn set_sigio(&mut self)

Sets SIGIO.

Source

pub const fn set_sigio_if(&mut self, condition: bool)

Sets SIGIO if condition is true.

Source

pub const fn unset_sigio(&mut self)

Unsets SIGIO.

Source

pub const fn has_sigpwr(self) -> bool

Returns true if SIGPWR is present.

Source

pub const fn contains_sigpwr(self) -> bool

Returns true if all bits in SIGPWR are present.

Source

pub const fn intersects_sigpwr(self) -> bool

Returns true if the set shares any bit with SIGPWR.

Source

pub const fn with_sigpwr(self) -> Self

Returns self with SIGPWR inserted.

Source

pub const fn with_sigpwr_if(self, condition: bool) -> Self

Returns self with SIGPWR inserted if condition is true.

Source

pub const fn without_sigpwr(self) -> Self

Returns self with SIGPWR removed.

Source

pub const fn set_sigpwr(&mut self)

Sets SIGPWR.

Source

pub const fn set_sigpwr_if(&mut self, condition: bool)

Sets SIGPWR if condition is true.

Source

pub const fn unset_sigpwr(&mut self)

Unsets SIGPWR.

Source

pub const fn has_sigsys(self) -> bool

Returns true if SIGSYS is present.

Source

pub const fn contains_sigsys(self) -> bool

Returns true if all bits in SIGSYS are present.

Source

pub const fn intersects_sigsys(self) -> bool

Returns true if the set shares any bit with SIGSYS.

Source

pub const fn with_sigsys(self) -> Self

Returns self with SIGSYS inserted.

Source

pub const fn with_sigsys_if(self, condition: bool) -> Self

Returns self with SIGSYS inserted if condition is true.

Source

pub const fn without_sigsys(self) -> Self

Returns self with SIGSYS removed.

Source

pub const fn set_sigsys(&mut self)

Sets SIGSYS.

Source

pub const fn set_sigsys_if(&mut self, condition: bool)

Sets SIGSYS if condition is true.

Source

pub const fn unset_sigsys(&mut self)

Unsets SIGSYS.

Sourceยง

impl LinuxSignalSet

Common set methods

Source

pub const fn new() -> Self

Returns an empty set.

Source

pub const fn from_bits(bits: u32) -> Self

Returns a set from raw bits.

Source

pub const fn bits(self) -> u32

Returns the raw backing bits.

Source

pub const fn all() -> Self

Returns the union of all declared sets.

Source

pub const fn is_empty(self) -> bool

Returns true if no bits are set.

Source

pub const fn is_full(self) -> bool

Returns true if all the declared bits are set.

Source

pub const fn contains(self, other: Self) -> bool

Returns true if all bits in other are also set in self.

Source

pub const fn has(self, other: Self) -> bool

An alias of contains.

Source

pub const fn with(self, other: Self) -> Self

Returns self with other inserted.

Source

pub const fn with_if(self, condition: bool, other: Self) -> Self

Returns self with other inserted if condition is true.

Source

pub const fn without(self, other: Self) -> Self

Returns self with other removed.

Source

pub const fn toggled(self, other: Self) -> Self

Returns self with other toggled.

Sourceยง

impl LinuxSignalSet

Set operations

Source

pub const fn intersects(self, other: Self) -> bool

Returns true if self and other share any bit.

Source

pub const fn is_subset(self, other: Self) -> bool

Returns true if all bits in self are also set in other.

Source

pub const fn is_superset(self, other: Self) -> bool

Returns true if all bits in other are also set in self.

Source

pub const fn union(self, other: Self) -> Self

Returns the union of self and other.

Source

pub const fn intersection(self, other: Self) -> Self

Returns the intersection of self and other.

Source

pub const fn difference(self, other: Self) -> Self

Returns the difference of self and other.

Source

pub const fn symmetric_difference(self, other: Self) -> Self

Returns the symmetric difference of self and other.

Sourceยง

impl LinuxSignalSet

Mutating set operations

Source

pub const fn clear(&mut self)

Clears the set.

Source

pub const fn insert(&mut self, other: Self)

Inserts all bits from other.

Source

pub const fn remove(&mut self, other: Self)

Removes all bits from other.

Source

pub const fn toggle(&mut self, other: Self)

Toggles all bits from other.

Trait Implementationsยง

Sourceยง

impl Binary for LinuxSignalSet

Formats the set as a binary mask over its declared bit domain.

Sourceยง

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

Formats the value using the given formatter. Read more
Sourceยง

impl BitAnd for LinuxSignalSet

Sourceยง

type Output = LinuxSignalSet

The resulting type after applying the & operator.
Sourceยง

fn bitand(self, rhs: Self) -> Self::Output

Performs the & operation. Read more
Sourceยง

impl BitAndAssign for LinuxSignalSet

Sourceยง

fn bitand_assign(&mut self, rhs: Self)

Performs the &= operation. Read more
Sourceยง

impl BitOr for LinuxSignalSet

Sourceยง

type Output = LinuxSignalSet

The resulting type after applying the | operator.
Sourceยง

fn bitor(self, rhs: Self) -> Self::Output

Performs the | operation. Read more
Sourceยง

impl BitOrAssign for LinuxSignalSet

Sourceยง

fn bitor_assign(&mut self, rhs: Self)

Performs the |= operation. Read more
Sourceยง

impl BitSized<{ $Set::_SET_BIT_SIZE }> for LinuxSignalSet

Sourceยง

const BIT_SIZE: usize = _

The bit size of this type (only the relevant data part, without padding). Read more
Sourceยง

const MIN_BYTE_SIZE: usize = _

The rounded up byte size for this type. Read more
Sourceยง

fn bit_size(&self) -> usize

Returns the bit size of this type (only the relevant data part, without padding). Read more
Sourceยง

fn min_byte_size(&self) -> usize

Returns the rounded up byte size for this type. Read more
Sourceยง

impl BitXor for LinuxSignalSet

Sourceยง

type Output = LinuxSignalSet

The resulting type after applying the ^ operator.
Sourceยง

fn bitxor(self, rhs: Self) -> Self::Output

Performs the ^ operation. Read more
Sourceยง

impl BitXorAssign for LinuxSignalSet

Sourceยง

fn bitxor_assign(&mut self, rhs: Self)

Performs the ^= operation. Read more
Sourceยง

impl Clone for LinuxSignalSet

Sourceยง

fn clone(&self) -> LinuxSignalSet

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 ConstInit for LinuxSignalSet

Sourceยง

const INIT: Self

Returns the compile-time โ€œinitial valueโ€ for a type.
Sourceยง

impl Copy for LinuxSignalSet

Sourceยง

impl Debug for LinuxSignalSet

Formats the set as a prefixed binary mask over its declared bit domain.

Sourceยง

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

Formats the value using the given formatter. Read more
Sourceยง

impl DebugExt for LinuxSignalSet

Sourceยง

type Ctx = ReprMode

The context used to guide formatting.
Sourceยง

fn fmt_with(&self, f: &mut Formatter<'_>, ctx: &Self::Ctx) -> FmtResult<()>

Formats self under the given context.
Sourceยง

fn debug_with<'a>(&'a self, ctx: &'a Self::Ctx) -> DebugWith<'a, Self>
where Self: Sized,

Wraps self for contextual debug formatting.
Sourceยง

impl Default for LinuxSignalSet

Sourceยง

fn default() -> Self

Returns the โ€œdefault valueโ€ for a type. Read more
Sourceยง

impl Display for LinuxSignalSet

Formats the set as a prefixed binary mask over its declared bit domain.

Sourceยง

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

Formats the value using the given formatter. Read more
Sourceยง

impl Eq for LinuxSignalSet

Sourceยง

impl From<LinuxSignalSet> for LinuxSigset

Sourceยง

fn from(signals: LinuxSignalSet) -> Self

Converts to this type from the input type.
Sourceยง

impl From<LinuxSigset> for LinuxSignalSet

Sourceยง

fn from(mask: LinuxSigset) -> Self

Converts to this type from the input type.
Sourceยง

impl Hash for LinuxSignalSet

Sourceยง

fn hash<H: Hasher>(&self, state: &mut H)

Feeds this value into the given Hasher. Read more
1.3.0 ยท Sourceยง

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Sourceยง

impl LowerHex for LinuxSignalSet

Formats the set as a hexadecimal mask over its declared bit domain.

Sourceยง

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

Formats the value using the given formatter. Read more
Sourceยง

impl Not for LinuxSignalSet

Sourceยง

type Output = LinuxSignalSet

The resulting type after applying the ! operator.
Sourceยง

fn not(self) -> Self::Output

Performs the unary ! operation. Read more
Sourceยง

impl Octal for LinuxSignalSet

Formats the set as an octal mask over its declared bit domain.

Sourceยง

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

Formats the value using the given formatter. Read more
Sourceยง

impl Ord for LinuxSignalSet

Sourceยง

fn cmp(&self, other: &Self) -> 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 LinuxSignalSet

Sourceยง

fn eq(&self, other: &Self) -> 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 LinuxSignalSet

Sourceยง

fn partial_cmp(&self, other: &Self) -> 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 Sub for LinuxSignalSet

Sourceยง

type Output = LinuxSignalSet

The resulting type after applying the - operator.
Sourceยง

fn sub(self, rhs: Self) -> Self::Output

Performs the - operation. Read more
Sourceยง

impl SubAssign for LinuxSignalSet

Sourceยง

fn sub_assign(&mut self, rhs: Self)

Performs the -= operation. Read more
Sourceยง

impl UpperHex for LinuxSignalSet

Formats the set as a hexadecimal mask over its declared bit domain.

Sourceยง

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

Formats the value using the given formatter. Read more

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> AnyExt for T
where T: Any + ?Sized,

Sourceยง

fn type_id() -> TypeId

Returns the TypeId of Self. Read more
Sourceยง

fn type_of(&self) -> TypeId

Returns the TypeId of self. Read more
Sourceยง

fn type_name(&self) -> &'static str โ“˜

Returns the type name of self. Read more
Sourceยง

fn type_is<T: 'static>(&self) -> bool

Returns true if Self is of type T. Read more
Sourceยง

fn type_hash(&self) -> u64

Returns a deterministic hash of the TypeId of Self.
Sourceยง

fn type_hash_with<H: Hasher>(&self, hasher: H) -> u64

Returns a deterministic hash of the TypeId of Self using a custom hasher.
Sourceยง

fn as_any_ref(&self) -> &dyn Any
where Self: Sized,

Upcasts &self as &dyn Any. Read more
Sourceยง

fn as_any_mut(&mut self) -> &mut dyn Any
where Self: Sized,

Upcasts &mut self as &mut dyn Any. Read more
Sourceยง

fn as_any_box(self: Box<Self>) -> Box<dyn Any>
where Self: Sized,

Available on crate feature alloc only.
Upcasts Box<self> as Box<dyn Any>. Read more
Sourceยง

fn downcast_ref<T: 'static>(&self) -> Option<&T> โ“˜

Available on crate feature unsafe_layout and non-crate feature safe_code only.
Returns some shared reference to the inner value if it is of type T. Read more
Sourceยง

fn downcast_mut<T: 'static>(&mut self) -> Option<&mut T> โ“˜

Available on crate feature unsafe_layout and non-crate feature safe_code only.
Returns some exclusive reference to the inner value if it is of type T. 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> ByteSized for T

Sourceยง

const BYTE_ALIGN: usize = _

The alignment of this type in bytes.
Sourceยง

const BYTE_SIZE: usize = _

The size of this type in bytes.
Sourceยง

fn byte_align(&self) -> usize

Returns the alignment of this type in bytes.
Sourceยง

fn byte_size(&self) -> usize

Returns the size of this type in bytes. Read more
Sourceยง

fn ptr_size_ratio(&self) -> [usize; 2]

Returns the size ratio between Ptr::BYTES and BYTE_SIZE. 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<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Sourceยง

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Sourceยง

impl<T> From<T> for T

Sourceยง

fn from(t: T) -> T

Returns the argument unchanged.

Sourceยง

impl<T> Hook for T

Sourceยง

fn hook<F>(self, f: F) -> Self
where F: FnOnce(&mut Self),

Hooks a mutation step into the value and returns it. Read more
Sourceยง

fn tap<F>(self, f: F) -> Self
where F: FnOnce(&Self),

Taps into the value for observation and returns it unchanged. Read more
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> MemExt for T
where T: ?Sized,

Sourceยง

const NEEDS_DROP: bool = _

Know whether dropping values of this type matters, in compile-time.
Sourceยง

fn mem_align_of<T>() -> usize

Returns the minimum alignment of the type in bytes. Read more
Sourceยง

fn mem_align_of_val(&self) -> usize

Returns the alignment of the pointed-to value in bytes. Read more
Sourceยง

fn mem_size_of<T>() -> usize

Returns the size of a type in bytes. Read more
Sourceยง

fn mem_size_of_val(&self) -> usize

Returns the size of the pointed-to value in bytes. Read more
Sourceยง

fn mem_copy(&self) -> Self
where Self: Copy,

Bitwise-copies a value. Read more
Sourceยง

fn mem_needs_drop(&self) -> bool

Returns true if dropping values of this type matters. Read more
Sourceยง

fn mem_drop(self)
where Self: Sized,

Drops self by running its destructor. Read more
Sourceยง

fn mem_forget(self)
where Self: Sized,

Forgets about self without running its destructor. Read more
Sourceยง

fn mem_replace(&mut self, other: Self) -> Self
where Self: Sized,

Replaces self with other, returning the previous value of self. Read more
Sourceยง

fn mem_take(&mut self) -> Self
where Self: Default,

Replaces self with its default value, returning the previous value of self. Read more
Sourceยง

fn mem_swap(&mut self, other: &mut Self)
where Self: Sized,

Swaps the value of self and other without deinitializing either one. Read more
Sourceยง

unsafe fn mem_zeroed<T>() -> T

Available on crate feature unsafe_layout only.
Returns the value of type T represented by the all-zero byte-pattern. Read more
Sourceยง

unsafe fn mem_transmute_copy<Src, Dst>(src: &Src) -> Dst

Available on crate feature unsafe_layout only.
Returns the value of type T represented by the all-zero byte-pattern. Read more
Sourceยง

fn mem_as_bytes(&self) -> &[u8] โ“˜
where Self: Sync + Unpin,

Available on crate feature unsafe_slice only.
View a Sync + Unpin self as &[u8]. Read more
Sourceยง

fn mem_as_bytes_mut(&mut self) -> &mut [u8] โ“˜
where Self: Sync + Unpin,

Available on crate feature unsafe_slice only.
View a Sync + Unpin self as &mut [u8]. Read more
Sourceยง

impl<T, R> Morph<R> for T
where T: ?Sized,

Sourceยง

fn morph<F>(self, f: F) -> R
where F: FnOnce(Self) -> R, Self: Sized,

Morphs the value into a new one and returns it. Read more
Sourceยง

fn morph_ref<F>(&self, f: F) -> R
where F: FnOnce(&Self) -> R,

Morphs the value by shared reference and returns the result. Read more
Sourceยง

fn morph_mut<F>(&mut self, f: F) -> R
where F: FnOnce(&mut Self) -> R,

Morphs the value by exclusive reference and returns the result. Read more
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> ToString for T
where T: Display + ?Sized,

Sourceยง

fn to_string(&self) -> String โ“˜

Converts the given value to a String. 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.