ns_com_ptr.rs (432B)
1 /* This Source Code Form is subject to the terms of the Mozilla Public 2 * License, v. 2.0. If a copy of the MPL was not distributed with this 3 * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ 4 5 //! Little helpers for `nsCOMPtr`. 6 7 use crate::gecko_bindings::structs::nsCOMPtr; 8 9 impl<T> nsCOMPtr<T> { 10 /// Get this pointer as a raw pointer. 11 #[inline] 12 pub fn raw(&self) -> *mut T { 13 self.mRawPtr 14 } 15 }