Home
last modified time | relevance | path

Searched refs:AsRef (Results 1 – 15 of 15) sorted by relevance

/linux/rust/kernel/
H A Dstr.rs55 pub fn strip_prefix(&self, pattern: impl AsRef<Self>) -> Option<&BStr> { in strip_prefix()
154 impl AsRef<BStr> for [u8] { impl
160 impl AsRef<BStr> for BStr {
375 impl AsRef<BStr> for CStr {
H A Dusb.rs361 impl<Ctx: device::DeviceContext> AsRef<device::Device<Ctx>> for Interface<Ctx> {
372 impl<Ctx: device::DeviceContext> AsRef<Device> for Interface<Ctx> {
449 impl<Ctx: device::DeviceContext> AsRef<device::Device<Ctx>> for Device<Ctx> {
363 impl<Ctx: device::DeviceContext> AsRef<device::Device<Ctx>> for Interface<Ctx> { global() impl
451 impl<Ctx: device::DeviceContext> AsRef<device::Device<Ctx>> for Device<Ctx> { global() impl
H A Dfaux.rs62 impl AsRef<device::Device> for Registration {
H A Ddevice.rs108 /// Bus devices should also implement the following [`AsRef`] implementation, such that users can
112 /// impl<Ctx: device::DeviceContext> AsRef<device::Device<Ctx>> for Device<Ctx> {
141 /// Class devices should also implement the following [`AsRef`] implementation, such that users can
145 /// impl<T: class::Driver> AsRef<device::Device> for Device<T> {
615 impl<Ctx: DeviceContext> AsRef<Device<Ctx>> for Device<Ctx> {
633 pub unsafe trait AsBusDevice<Ctx: DeviceContext>: AsRef<Device<Ctx>> { in from_device()
604 impl<Ctx: DeviceContext> AsRef<Device<Ctx>> for Device<Ctx> { global() impl
H A Dauxiliary.rs311 impl<Ctx: device::DeviceContext> AsRef<device::Device<Ctx>> for Device<Ctx> { impl
H A Dpci.rs489 impl<Ctx: device::DeviceContext> AsRef<device::Device<Ctx>> for Device<Ctx> { impl
H A Dplatform.rs527 impl<Ctx: device::DeviceContext> AsRef<device::Device<Ctx>> for Device<Ctx> { impl
H A Di2c.rs506 impl<Ctx: device::DeviceContext> AsRef<device::Device<Ctx>> for I2cClient<Ctx> {
507 impl<Ctx: device::DeviceContext> AsRef<device::Device<Ctx>> for I2cClient<Ctx> { global() impl
H A Ddma.rs50 pub trait Device: AsRef<device::Device<Core>> {
/linux/rust/kernel/drm/
H A Ddevice.rs245 impl<T: drm::Driver> AsRef<device::Device> for Device<T> {
/linux/rust/kernel/list/
H A Darc.rs436 impl<T, const ID: u64> AsRef<Arc<T>> for ListArc<T, ID>
435 impl<T, const ID: u64> AsRef<Arc<T>> for ListArc<T, ID> global() impl
/linux/rust/syn/
H A Dlit.rs1264 pub(crate) fn byte<S: AsRef<[u8]> + ?Sized>(s: &S, idx: usize) -> u8 { in byte()
1616 S: Index<RangeFrom<usize>, Output = S> + AsRef<[u8]> + ?Sized, in backslash_x()
1639 S: Index<RangeFrom<usize>, Output = S> + AsRef<[u8]> + ?Sized, in backslash_u()
/linux/rust/proc-macro2/
H A Dlib.rs1015 T: ?Sized + AsRef<str>,
H A Dfallback.rs877 T: ?Sized + AsRef<str>,
H A Dwrapper.rs730 T: ?Sized + AsRef<str>,