pub struct Item { /* private fields */ }Expand description
Item
Implementations§
Source§impl Item
impl Item
pub const fn new( target: ItemTarget, relation: Option<&'static str>, scale: Option<u32>, validators: &'static [TypeValidator], sanitizers: &'static [TypeSanitizer], indirect: bool, ) -> Self
pub const fn target(&self) -> &ItemTarget
pub const fn relation(&self) -> Option<&'static str>
pub const fn scale(&self) -> Option<u32>
pub const fn validators(&self) -> &'static [TypeValidator]
pub const fn sanitizers(&self) -> &'static [TypeSanitizer]
pub const fn indirect(&self) -> bool
pub const fn is_relation(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Item
impl RefUnwindSafe for Item
impl Send for Item
impl Sync for Item
impl Unpin for Item
impl UnsafeUnpin for Item
impl UnwindSafe for Item
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