pub struct SealedInterface {
pub name: String,
pub permits: Vec<String>,
pub methods: Vec<JavaMethod>,
pub annotations: Vec<String>,
pub extends: Vec<String>,
}Expand description
A sealed interface declaration (Java 17+).
public sealed interface Expr permits Lit, Add, Mul {}Fields§
§name: String§permits: Vec<String>Permitted subclasses/records
methods: Vec<JavaMethod>Methods defined in the interface (default or abstract)
annotations: Vec<String>Annotations
extends: Vec<String>Extended interfaces
Implementations§
Trait Implementations§
Source§impl Clone for SealedInterface
impl Clone for SealedInterface
Source§fn clone(&self) -> SealedInterface
fn clone(&self) -> SealedInterface
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SealedInterface
impl RefUnwindSafe for SealedInterface
impl Send for SealedInterface
impl Sync for SealedInterface
impl Unpin for SealedInterface
impl UnsafeUnpin for SealedInterface
impl UnwindSafe for SealedInterface
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more