pub struct AllowList { /* private fields */ }Expand description
dead-code-allow.toml: [[item]] and [[dependency]] entries.
[[item]]
package = "sofie-http"
name = "Screens"
reason = "Why it stays although nothing names it."Implementations§
Source§impl AllowList
impl AllowList
pub fn read(root: &Path) -> Result<Self, ModelError>
Sourcepub fn item_entry(package: &str, name: &str, reason: &str) -> String
pub fn item_entry(package: &str, name: &str, reason: &str) -> String
An [[item]] entry to append to the file.
Sourcepub fn item_line(&self, package: &str, name: &str) -> Option<usize>
pub fn item_line(&self, package: &str, name: &str) -> Option<usize>
Where the [[item]] entry allowing name of package starts, if there is one.
Sourcepub fn without_entries(text: &str, lines: &[usize]) -> String
pub fn without_entries(text: &str, lines: &[usize]) -> String
The file’s text without the entries starting at lines (from 1), each
up to the next entry, with the blank lines before it.
Auto Trait Implementations§
impl Freeze for AllowList
impl RefUnwindSafe for AllowList
impl Send for AllowList
impl Sync for AllowList
impl Unpin for AllowList
impl UnsafeUnpin for AllowList
impl UnwindSafe for AllowList
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