pub struct BytesReplacement {
pub find: Vec<u8>,
pub replace: Vec<u8>,
pub enable_if: Option<String>,
}Expand description
One find -> replace byte pair.
Fields§
§find: Vec<u8>§replace: Vec<u8>§enable_if: Option<String>References a Rhai expression (same meaning as
RedirectionRule::enable_if, just at the level of one replacement
pair instead of a whole rule): this pair is only included in the
patch actually applied to the game if the parameter reads truthy.
None means this pair is always included.
Trait Implementations§
Source§impl Clone for BytesReplacement
impl Clone for BytesReplacement
Source§fn clone(&self) -> BytesReplacement
fn clone(&self) -> BytesReplacement
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 BytesReplacement
impl Debug for BytesReplacement
Source§impl<'de> Deserialize<'de> for BytesReplacement
impl<'de> Deserialize<'de> for BytesReplacement
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for BytesReplacement
impl PartialEq for BytesReplacement
Source§fn eq(&self, other: &BytesReplacement) -> bool
fn eq(&self, other: &BytesReplacement) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for BytesReplacement
impl Serialize for BytesReplacement
impl Eq for BytesReplacement
impl StructuralPartialEq for BytesReplacement
Auto Trait Implementations§
impl Freeze for BytesReplacement
impl RefUnwindSafe for BytesReplacement
impl Send for BytesReplacement
impl Sync for BytesReplacement
impl Unpin for BytesReplacement
impl UnsafeUnpin for BytesReplacement
impl UnwindSafe for BytesReplacement
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