mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-02 22:54:36 +00:00
Add a few Debug impl
This commit is contained in:
parent
3651d77a06
commit
681f304768
3 changed files with 23 additions and 1 deletions
|
@ -437,6 +437,12 @@ pub struct VOffset<Base, T: ?Sized + VTableMeta, PinFlag = NotPinnedFlag> {
|
|||
phantom: PhantomData<FieldOffset<Base, (), PinFlag>>,
|
||||
}
|
||||
|
||||
impl<Base, T: ?Sized + VTableMeta, PinFlag> core::fmt::Debug for VOffset<Base, T, PinFlag> {
|
||||
fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
|
||||
write!(f, "VOffset({})", self.offset)
|
||||
}
|
||||
}
|
||||
|
||||
impl<Base, T: ?Sized + VTableMeta, Flag> VOffset<Base, T, Flag> {
|
||||
#[inline]
|
||||
pub fn apply<'a>(self, x: &'a Base) -> VRef<'a, T> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue