[−][src]Struct rust_swig::JavaConfig
Configuration for Java binding generation
Implementations
impl JavaConfig
[src]
pub fn new(output_dir: PathBuf, package_name: String) -> JavaConfig
[src]
Create JavaConfig
Arguments
output_dir
- directory where place generated java filespackage_name
- package name for generated java files
pub fn use_null_annotation(self, import_annotation: String) -> JavaConfig
[src]
👎 Deprecated:
Use use_null_annotation_from_package instead
Use @NonNull for types where appropriate
Arguments
import_annotation
- import statement for @NonNull, for example android.support.annotation.NonNull
pub fn use_null_annotation_from_package(
self,
null_annotation_package: String
) -> JavaConfig
[src]
self,
null_annotation_package: String
) -> JavaConfig
Use @NonNull/@Nullable for types where appropriate
Arguments
null_annotation_package
- from which package import annotations like NonNull, for example for Android Studio you should pass android.support.annotation
pub fn use_optional_package(self, optional_package: String) -> JavaConfig
[src]
If you use JDK without java.util.Optional*, then you can provide name of custom package with Optional. Default value is "java.util"
pub fn use_reachability_fence(
self,
reachability_fence: JavaReachabilityFence
) -> JavaConfig
[src]
self,
reachability_fence: JavaReachabilityFence
) -> JavaConfig
Choose reachability fence variant, JavaReachabilityFence::Std
provide
ability to generate better code, but not available untill Java 9 and
Android API level 28
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for JavaConfig
impl Send for JavaConfig
impl Sync for JavaConfig
impl Unpin for JavaConfig
impl UnwindSafe for JavaConfig
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,