Enum kotlin_poet_rs::spec::VisibilityModifier
source · pub enum VisibilityModifier {
Public,
Internal,
Private,
Protected,
}
Expand description
Represents Kotlin’s visibility modifier
Defaults to VisibilityModifier::Public. Lack of visibility modifier means that the member is public.
Variants§
Public
public
means that any client who sees the declaring class sees its public
members.
Internal
internal
means that any client inside this module who sees the declaring class sees its internal
members.
Private
private
means that the member is visible inside this class only (including all its members).
Protected
protected
means that the member has the same visibility as one marked as private, but that it is also visible in subclasses.
Trait Implementations§
source§impl Clone for VisibilityModifier
impl Clone for VisibilityModifier
source§fn clone(&self) -> VisibilityModifier
fn clone(&self) -> VisibilityModifier
Returns a copy 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 moresource§impl Debug for VisibilityModifier
impl Debug for VisibilityModifier
source§impl Default for VisibilityModifier
impl Default for VisibilityModifier
source§fn default() -> VisibilityModifier
fn default() -> VisibilityModifier
Returns the “default value” for a type. Read more
source§impl PartialEq for VisibilityModifier
impl PartialEq for VisibilityModifier
source§impl RenderKotlin for VisibilityModifier
impl RenderKotlin for VisibilityModifier
source§fn render_string(&self) -> String
fn render_string(&self) -> String
Shortcut method for converting RenderKotlin::render_into output into String.
impl StructuralPartialEq for VisibilityModifier
Auto Trait Implementations§
impl Freeze for VisibilityModifier
impl RefUnwindSafe for VisibilityModifier
impl Send for VisibilityModifier
impl Sync for VisibilityModifier
impl Unpin for VisibilityModifier
impl UnwindSafe for VisibilityModifier
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)