[−][src]Struct genco::java::Optional
An optional type.
Fields
value: TypeBox
The type that is optional.
field: TypeBox
The complete optional field type, including wrapper.
Implementations
impl Optional
[src]
pub fn as_field(self) -> TypeBox
[src]
Get the field type (includes optionality).
pub fn as_value(self) -> TypeBox
[src]
Get the value type (strips optionality).
Trait Implementations
impl Clone for Optional
[src]
impl Debug for Optional
[src]
impl Eq for Optional
[src]
impl<'el> FormatTokens<'el, Java> for Optional
[src]
impl<'el> FormatTokens<'el, Java> for &'el Optional
[src]
impl<'el> From<&'el Optional> for LangBox<'el, Java>
[src]
impl From<Optional> for TypeBox
[src]
impl<'el> From<Optional> for LangBox<'el, Java>
[src]
impl Hash for Optional
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl LangItem<Java> for Optional
[src]
fn format(
&self,
out: &mut Formatter,
config: &mut Config,
level: usize
) -> Result
[src]
&self,
out: &mut Formatter,
config: &mut Config,
level: usize
) -> Result
fn as_import(&self) -> Option<&dyn TypeTrait>
[src]
impl Ord for Optional
[src]
fn cmp(&self, other: &Optional) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<Optional> for Optional
[src]
impl PartialOrd<Optional> for Optional
[src]
fn partial_cmp(&self, other: &Optional) -> Option<Ordering>
[src]
fn lt(&self, other: &Optional) -> bool
[src]
fn le(&self, other: &Optional) -> bool
[src]
fn gt(&self, other: &Optional) -> bool
[src]
fn ge(&self, other: &Optional) -> bool
[src]
impl StructuralEq for Optional
[src]
impl StructuralPartialEq for Optional
[src]
impl TypeTrait for Optional
[src]
Auto Trait Implementations
impl !RefUnwindSafe for Optional
impl !Send for Optional
impl !Sync for Optional
impl Unpin for Optional
impl !UnwindSafe for Optional
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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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>,