pub fn push_id<'a, I: Into<ImId<'a>>>(&self, id: I) {
        let id = id.into();

        unsafe {
            match id {
                ImId::Int(i) => {
                    sys::igPushIDInt(i);
                }
                ImId::Str(s) => {
                    let start = s.as_ptr() as *const c_char;
                    let end = start.add(s.len());
                    sys::igPushIDRange(start, end);
                }
                ImId::Ptr(p) => {
                    sys::igPushIDPtr(p as *const c_void);
                }
            }
        }
    }
/// Pushes an identifier to the ID stack.
Pushes an identifier to the ID stack.
Pushes an identifier to the ID stack .
pub fn push_id<'a, I: Into<ImId<'a>>>(&self, id: I) {
        let id = id.into();
        unsafe {
            match id {
                ImId::Int(i) => {
                    sys::igPushIDInt(i);
                }
                ImId::Str(s) => {
                    let start = s.as_ptr() as *const c_char;
                    let end = start.add(s.len());
                    sys::igPushIDRange(start, end);
                }
                ImId::Ptr(p) => {
                    sys::igPushIDPtr(p as *const c_void);
                }
            }
        }
    }
pub fn push_id < ' a , I : Into < ImId < ' a > > > ( & self , id : I ) { let id = id . into ( ) ; unsafe { match id { ImId :: Int ( i ) => { sys :: igPushIDInt ( i ) ; } ImId :: Str ( s ) => { let start = s . as_ptr ( ) as * const c_char ; let end = start . add ( s . len ( ) ) ; sys :: igPushIDRange ( start , end ) ; } ImId :: Ptr ( p ) => { sys :: igPushIDPtr ( p as * const c_void ) ; } } } }
Pushes an identifier to the ID stack.
Pushes an identifier to the ID stack .
&self
id
I