pub unsafe fn of(value: &T) -> &ComBoxData<T>
    {
        // Resolve the offset of the 'value' field.
        let null_combox = std::ptr::null() as *const ComBoxData<T>;
        let value_offset = &((*null_combox).value) as *const _ as usize;

        let combox_loc = value as *const T as usize - value_offset;
        &mut *(combox_loc as *mut ComBoxData<T>)
    }
/// Gets the ComBoxData holding the value.
///
/// # Safety
///
/// This is unsafe for two reasons:
///
/// - There is no way for the method to check that the value is actually
///   contained in a `ComBoxData`. It is up to the caller to ensure this method
///   is only called with values that exist within a `ComBoxData`.
///
/// - The method returns a mutable reference to the ComBoxData containing the
///   value. As demonstrated by the parameter type, the caller already has
///   a mutable reference to the value itself. As a result the caller will
///   end up with two different mutable references to the value - the direct
///   one given as a parameter and an indirect one available through the
///   return value. The caller should not attempt to access the value data
///   through the returned `ComBoxData` reference.
Gets the ComBoxData holding the value.
Gets the ComBoxData holding the value .
pub unsafe fn of(value: &T) -> &ComBoxData<T>
    {
        // Resolve the offset of the 'value' field.
        let null_combox = std::ptr::null() as *const ComBoxData<T>;
        let value_offset = &((*null_combox).value) as *const _ as usize;
        let combox_loc = value as *const T as usize - value_offset;
        &mut *(combox_loc as *mut ComBoxData<T>)
    }
pub unsafe fn of ( value : & T ) -> & ComBoxData < T > { // Resolve the offset of the 'value' field. let null_combox = std :: ptr :: null ( ) as * const ComBoxData < T > ; let value_offset = & ( ( * null_combox ) . value ) as * const _ as usize ; let combox_loc = value as * const T as usize - value_offset ; & mut * ( combox_loc as * mut ComBoxData < T > ) }
Gets the ComBoxData holding the value.
Gets the ComBoxData holding the value .
value
&T
value
&T
safety
This is unsafe for two reasons.

There is no way for the method to check that the value is actually
contained in a `ComBoxData`. It is up to the caller to ensure this method
is only called with values that exist within a `ComBoxData`.

The method returns a mutable reference to the ComBoxData containing the
value. As demonstrated by the parameter type, the caller already has
a mutable reference to the value itself. As a result the caller will
end up with two different mutable references to the value - the direct
one given as a parameter and an indirect one available through the
return value. The caller should not attempt to access the value data
through the returned `ComBoxData` reference.
This is unsafe for two reasons . There is no way for the method to check that the value is actually contained in a ` ComBoxData ` . It is up to the caller to ensure this method is only called with values that exist within a ` ComBoxData ` . The method returns a mutable reference to the ComBoxData containing the value . As demonstrated by the parameter type the caller already has a mutable reference to the value itself . As a result the caller will end up with two different mutable references to the value - the direct one given as a parameter and an indirect one available through the return value . The caller should not attempt to access the value data through the returned ` ComBoxData ` reference .