pub struct FunctionConstraint {
pub file_pattern: String,
pub function_pattern: String,
pub protection_level: ProtectionLevel,
pub documentation_required: bool,
}
Expand description
Function-level constraint
Fields§
§file_pattern: String
File pattern where function is located
function_pattern: String
Function name or pattern
protection_level: ProtectionLevel
Protection level for this function
documentation_required: bool
Documentation requirements
Trait Implementations§
Source§impl Clone for FunctionConstraint
impl Clone for FunctionConstraint
Source§fn clone(&self) -> FunctionConstraint
fn clone(&self) -> FunctionConstraint
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 FunctionConstraint
impl RefUnwindSafe for FunctionConstraint
impl Send for FunctionConstraint
impl Sync for FunctionConstraint
impl Unpin for FunctionConstraint
impl UnwindSafe for FunctionConstraint
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